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

+6
View File
@@ -139,6 +139,12 @@ class InferenceState:
typing_module, = self.import_module(('typing',))
return typing_module
@property
@inference_state_function_cache()
def types_module(self):
typing_module, = self.import_module(('types',))
return typing_module
def reset_recursion_limitations(self):
self.recursion_detector = recursion.RecursionDetector()
self.execution_recursion_detector = recursion.ExecutionRecursionDetector(self)