Run pytype_test in Python 3.11. (#10903)

As of version 2023.10.17, pytype now supports 3.11.
This commit is contained in:
Rebecca Chen
2023-10-17 16:44:14 -07:00
committed by GitHub
parent dc3cc9578b
commit 1ecaab1641
3 changed files with 4 additions and 4 deletions

View File

@@ -29,8 +29,8 @@ from parse_metadata import read_dependencies
if sys.platform == "win32":
print("pytype does not support Windows.", file=sys.stderr)
sys.exit(1)
if sys.version_info >= (3, 11):
print("pytype does not support Python 3.11+ yet.", file=sys.stderr)
if sys.version_info >= (3, 12):
print("pytype does not support Python 3.12+ yet.", file=sys.stderr)
sys.exit(1)
# pytype is not py.typed https://github.com/google/pytype/issues/1325