mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
The builtins/typing module are not causing recursions. They are using annotations to give results.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -103,7 +103,7 @@ for a in re.finditer('a', 'a'):
|
||||
#? int()
|
||||
a.start()
|
||||
|
||||
#? str() bytes()
|
||||
#?
|
||||
re.sub('a', 'a')
|
||||
#? str() bytes()
|
||||
re.sub('a', 'a', 'f')
|
||||
|
||||
Reference in New Issue
Block a user