Don't complain if type() is used. (#54849)
This commit is contained in:
parent
ba8b5ec0d3
commit
df72317b29
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ else:
|
|||
|
||||
BLACKLIST_DIRS = frozenset(('.git', 'test', '.github', '.idea'))
|
||||
INDENT_REGEX = re.compile(r'([\t]*)')
|
||||
TYPE_REGEX = re.compile(r'.*(if|or)(\s+[^"\']*|\s+)(?<!_)(?<!str\()type\(.*')
|
||||
TYPE_REGEX = re.compile(r'.*(if|or)(\s+[^"\']*|\s+)(?<!_)(?<!str\()type\([^)].*')
|
||||
SYS_EXIT_REGEX = re.compile(r'[^#]*sys.exit\s*\(.*')
|
||||
BLACKLIST_IMPORTS = {
|
||||
'requests': {
|
||||
|
|
Loading…
Reference in a new issue