The builtins/typing module are not causing recursions. They are using annotations to give results.
This commit is contained in:
1 parent
4a5cb389b7
commit
52aa5b6764
2 files changed
+3
-1
No files matched your search
@@ -133,6 +133,8 @@ class ExecutionRecursionDetector(object):
|
||||
self._execution_count += 1
|
||||
|
||||
if self._funcdef_execution_counts.setdefault(funcdef, 0) >= per_function_execution_limit:
|
||||
if module.py__name__() in ('builtins', 'typing'):
|
||||
return False
|
||||
debug.warning(
|
||||
'Per function execution limit (%s) reached: %s',
|
||||
per_function_execution_limit,
|
||||
|
||||
Reference in new issue
Block a user