The builtins/typing module are not causing recursions. They are using annotations to give results.

This commit is contained in:
Dave Halter
2018-10-31 09:58:20 +01:00
parent 4a5cb389b7
commit 52aa5b6764
2 changed files with 3 additions and 1 deletions

View File

@@ -133,6 +133,8 @@ class ExecutionRecursionDetector(object):
self._execution_count += 1 self._execution_count += 1
if self._funcdef_execution_counts.setdefault(funcdef, 0) >= per_function_execution_limit: if self._funcdef_execution_counts.setdefault(funcdef, 0) >= per_function_execution_limit:
if module.py__name__() in ('builtins', 'typing'):
return False
debug.warning( debug.warning(
'Per function execution limit (%s) reached: %s', 'Per function execution limit (%s) reached: %s',
per_function_execution_limit, per_function_execution_limit,

View File

@@ -103,7 +103,7 @@ for a in re.finditer('a', 'a'):
#? int() #? int()
a.start() a.start()
#? str() bytes() #?
re.sub('a', 'a') re.sub('a', 'a')
#? str() bytes() #? str() bytes()
re.sub('a', 'a', 'f') re.sub('a', 'a', 'f')