mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 13:32:26 +08:00
@@ -13,7 +13,6 @@ consistent_files = [
|
||||
'stdlib/2and3/ntpath.pyi', 'stdlib/2and3/macpath.pyi',
|
||||
'stdlib/2/os/path.pyi', 'stdlib/3/os/path.pyi'},
|
||||
{'stdlib/3/enum.pyi', 'third_party/2/enum.pyi'},
|
||||
{'stdlib/2/os/path.pyi', 'stdlib/3/os/path.pyi'},
|
||||
{'stdlib/3/unittest/mock.pyi', 'third_party/2and3/mock.pyi'},
|
||||
{'stdlib/3/concurrent/__init__.pyi', 'third_party/2/concurrent/__init__.pyi'},
|
||||
{'stdlib/3/concurrent/futures/__init__.pyi', 'third_party/2/concurrent/futures/__init__.pyi'},
|
||||
@@ -22,7 +21,7 @@ consistent_files = [
|
||||
{'stdlib/3/concurrent/futures/process.pyi', 'third_party/2/concurrent/futures/process.pyi'},
|
||||
{'stdlib/3.7/dataclasses.pyi', 'third_party/3/dataclasses.pyi'},
|
||||
{'stdlib/3/pathlib.pyi', 'third_party/2/pathlib2.pyi'},
|
||||
{'stdlib/3.7/contextvars.pyi', 'third_party/3.5/contextvars.pyi'},
|
||||
{'stdlib/3.7/contextvars.pyi', 'third_party/3/contextvars.pyi'},
|
||||
]
|
||||
|
||||
def main():
|
||||
|
||||
@@ -88,7 +88,7 @@ def main():
|
||||
print("Cannot import mypy. Did you install it?")
|
||||
sys.exit(1)
|
||||
|
||||
versions = [(3, 8), (3, 7), (3, 6), (3, 5), (3, 4), (2, 7)]
|
||||
versions = [(3, 8), (3, 7), (3, 6), (3, 5), (2, 7)]
|
||||
if args.python_version:
|
||||
versions = [v for v in versions
|
||||
if any(('%d.%d' % v).startswith(av) for av in args.python_version)]
|
||||
|
||||
Reference in New Issue
Block a user