Small improvements to generator/async completions
This commit is contained in:
1 parent
be993d132e
commit
4f7dfd14b3
9 files changed
+16
-14
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user