Move the base Context stuff to another module to keep context free for imports.
This commit is contained in:
1 parent
3c2221ec2d
commit
3c75f27376
27 files changed
+62
-60
No files matched your search
@@ -13,7 +13,7 @@ from jedi import debug
|
||||
from jedi.cache import underscore_memoization, memoize_method
|
||||
from jedi.evaluate.filters import AbstractFilter, AbstractNameDefinition, \
|
||||
ContextNameMixin
|
||||
from jedi.evaluate.context import Context, LazyKnownContext, ContextSet
|
||||
from jedi.evaluate.base_context import Context, ContextSet
|
||||
from jedi.evaluate.compiled.getattr_static import getattr_static
|
||||
from . import fake
|
||||
|
||||
@@ -231,6 +231,7 @@ class CompiledObject(Context):
|
||||
# Get rid of side effects, we won't call custom `__getitem__`s.
|
||||
return
|
||||
|
||||
from jedi.evaluate.context import LazyKnownContext
|
||||
for i, part in enumerate(self.obj):
|
||||
if i > 20:
|
||||
# Should not go crazy with large iterators
|
||||
|
||||
Reference in new issue
Block a user