Skip to content

Commit 98cd269

Browse files
pytype_runner: Check >3.11: pytype does not work with 3.12 and newer
Signed-off-by: Bernhard Kaindl <[email protected]>
1 parent 8f80e8e commit 98cd269

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pytype_runner.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import selectors
55
import shlex
66
import sys
7-
from logging import INFO, basicConfig, info
7+
from logging import INFO, basicConfig, info, fatal
88
from subprocess import PIPE, Popen
99
from typing import Dict, List, TextIO, Tuple
1010

@@ -150,6 +150,9 @@ def to_markdown(me, fp, returncode, results, branch_url):
150150

151151

152152
def setup_and_run_pytype_action(script_name: str):
153+
if sys.version_info > (3, 11):
154+
fatal("pytype does not yet work well enough when hosted on Python 3.12")
155+
sys.exit(5)
153156
config = load("pyproject.toml")
154157
pytype = config["tool"].get("pytype")
155158
xfail_files = pytype.get("xfail", []) if pytype else []

0 commit comments

Comments
 (0)