mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-10 23:29:12 +08:00
Put all mypy_test.py version parsing in mypy_test.py (#14974)
This commit is contained in:
1 parent
37dceef034
commit
eca15d9654
2 files changed
+2
-6
No files matched your search
+1
-1
@@ -78,7 +78,7 @@ def remove_dev_suffix(version: str) -> str:
|
||||
"""
|
||||
if version.endswith("-dev"):
|
||||
return version[: -len("-dev")]
|
||||
return version
|
||||
return ".".join(version.split(".")[:2])
|
||||
|
||||
|
||||
parser = argparse.ArgumentParser(
|
||||
|
||||
Reference in new issue
Block a user