mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Fix a 3.7 issue
This commit is contained in:
@@ -340,7 +340,8 @@ class FunctionExecutionContext(TreeContext):
|
|||||||
generics = (yield_contexts.py__class__(), NO_CONTEXTS)
|
generics = (yield_contexts.py__class__(), NO_CONTEXTS)
|
||||||
return ContextSet(
|
return ContextSet(
|
||||||
# In Python 3.6 AsyncGenerator is still a class.
|
# In Python 3.6 AsyncGenerator is still a class.
|
||||||
AnnotatedSubClass(getattr(c, 'stub_context', c), generics) for c in async_generator_classes
|
AnnotatedSubClass(c.stub_context or c, generics)
|
||||||
|
for c in async_generator_classes
|
||||||
).execute_annotation()
|
).execute_annotation()
|
||||||
else:
|
else:
|
||||||
if evaluator.environment.version_info < (3, 5):
|
if evaluator.environment.version_info < (3, 5):
|
||||||
|
|||||||
Reference in New Issue
Block a user