mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-07 08:28:28 +08:00
Put all mypy_test.py version parsing in mypy_test.py (#14974)
This commit is contained in:
+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