1
0
forked from VimPlug/jedi

Small improvements to generator/async completions

This commit is contained in:
Dave Halter
2026-04-29 23:38:07 +02:00
parent be993d132e
commit 4f7dfd14b3
9 changed files with 16 additions and 14 deletions
+2 -2
View File
@@ -340,10 +340,10 @@ class BaseFunctionExecutionContext(ValueContext, TreeContextMixin):
for c in async_generator_classes
).execute_annotation(None)
else:
async_classes = inference_state.typing_module.py__getattribute__('Coroutine')
async_classes = inference_state.types_module.py__getattribute__('CoroutineType')
return_values = self.get_return_values()
# Only the first generic is relevant.
generics = (return_values.py__class__(), NO_VALUES, NO_VALUES)
generics = (NO_VALUES, NO_VALUES, return_values.py__class__())
return ValueSet(
GenericClass(c, TupleGenericManager(generics)) for c in async_classes
).execute_annotation(None)