Small improvements to generator/async completions

This commit is contained in:
Dave Halter committed 2026-04-29 23:38:07 +02:00
1 parent be993d132e
commit 4f7dfd14b3
9 files changed
+16 -14

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ class GeneratorBase(LazyAttributeOverwrite, IterableMixin):
return instance
def _get_cls(self):
generator, = self.inference_state.typing_module.py__getattribute__('Generator')
generator, = self.inference_state.types_module.py__getattribute__('GeneratorType')
return generator
def py__bool__(self):