__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
from jedi.inference.base_value import ValueSet, NO_VALUES
from jedi.common import monkeypatch
class AbstractLazyValue:
def __init__(self, data, min=1, max=1):
self.data = data
self.min = min
self.max = max
def __repr__(self):
return '<%s: %s>' % (self.__class__.__name__, self.data)
def infer(self):
raise NotImplementedError
class LazyKnownValue(AbstractLazyValue):
"""data is a Value."""
def infer(self):
return ValueSet([self.data])
class LazyKnownValues(AbstractLazyValue):
"""data is a ValueSet."""
def infer(self):
return self.data
class LazyUnknownValue(AbstractLazyValue):
def __init__(self, min=1, max=1):
super().__init__(None, min, max)
def infer(self):
return NO_VALUES
class LazyTreeValue(AbstractLazyValue):
def __init__(self, context, node, min=1, max=1):
super().__init__(node, min, max)
self.context = context
# We need to save the predefined names. It's an unfortunate side effect
# that needs to be tracked otherwise results will be wrong.
self._predefined_names = dict(context.predefined_names)
def infer(self):
with monkeypatch(self.context, 'predefined_names', self._predefined_names):
return self.context.infer_node(self.data)
def get_merged_lazy_value(lazy_values):
if len(lazy_values) > 1:
return MergedLazyValues(lazy_values)
else:
return lazy_values[0]
class MergedLazyValues(AbstractLazyValue):
"""data is a list of lazy values."""
def infer(self):
return ValueSet.from_sets(l.infer() for l in self.data)
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| compiled | Folder | 0755 |
|
|
| gradual | Folder | 0755 |
|
|
| value | Folder | 0755 |
|
|
| __init__.py | File | 8.31 KB | 0644 |
|
| analysis.py | File | 7.58 KB | 0644 |
|
| arguments.py | File | 11.93 KB | 0644 |
|
| base_value.py | File | 17.79 KB | 0644 |
|
| cache.py | File | 4.09 KB | 0644 |
|
| context.py | File | 16.76 KB | 0644 |
|
| docstring_utils.py | File | 759 B | 0644 |
|
| docstrings.py | File | 9.59 KB | 0644 |
|
| dynamic_params.py | File | 7.96 KB | 0644 |
|
| filters.py | File | 12.2 KB | 0644 |
|
| finder.py | File | 5.2 KB | 0644 |
|
| flow_analysis.py | File | 4.48 KB | 0644 |
|
| helpers.py | File | 5.8 KB | 0644 |
|
| imports.py | File | 22.54 KB | 0644 |
|
| lazy_value.py | File | 1.63 KB | 0644 |
|
| names.py | File | 22.67 KB | 0644 |
|
| param.py | File | 10.21 KB | 0644 |
|
| parser_cache.py | File | 191 B | 0644 |
|
| recursion.py | File | 4.82 KB | 0644 |
|
| references.py | File | 11.14 KB | 0644 |
|
| signature.py | File | 4.75 KB | 0644 |
|
| star_args.py | File | 7.71 KB | 0644 |
|
| syntax_tree.py | File | 34.92 KB | 0644 |
|
| sys_path.py | File | 9.98 KB | 0644 |
|
| utils.py | File | 2.64 KB | 0644 |
|