mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
make pytype aware that 2.7/ has been renamed to 2/ (#729)
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# Pytype blacklist. Files will not be tested with pytype.
|
||||
|
||||
stdlib/2.7/__builtin__.pyi
|
||||
stdlib/2.7/builtins.pyi
|
||||
stdlib/2.7/types.pyi
|
||||
stdlib/2.7/typing.pyi
|
||||
stdlib/2/__builtin__.pyi
|
||||
stdlib/2/builtins.pyi
|
||||
stdlib/2/types.pyi
|
||||
stdlib/2/typing.pyi
|
||||
stdlib/2and3/webbrowser.pyi
|
||||
|
||||
# Because of 'from . import path':
|
||||
stdlib/2.7/os/__init__.pyi
|
||||
stdlib/2/os/__init__.pyi
|
||||
stdlib/3/os/__init__.pyi
|
||||
|
||||
@@ -70,7 +70,7 @@ def pytype_test(args):
|
||||
print("Cannot run pytd. Did you install pytype?")
|
||||
return 0, 0
|
||||
|
||||
wanted = re.compile(r"stdlib/(2\.7|2and3)/.*\.pyi$")
|
||||
wanted = re.compile(r"stdlib/(2|2\.7|2and3)/.*\.pyi$")
|
||||
skipped = re.compile("(%s)$" % "|".join(load_blacklist()))
|
||||
files = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user