Skip to content

Commit 231855b

Browse files
committed
Move mypy checks to 3.13, allow for using _colorize.py from the stdlib in checks
1 parent 5682219 commit 231855b

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

Lib/_pyrepl/mypy.ini

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
[mypy]
66
files = Lib/_pyrepl
7+
mypy_path = $MYPY_CONFIG_FILE_DIR/../../Misc/mypy
78
explicit_package_bases = True
8-
python_version = 3.12
9+
python_version = 3.13
910
platform = linux
1011
pretty = True
1112

@@ -22,3 +23,7 @@ check_untyped_defs = False
2223
# Various internal modules that typeshed deliberately doesn't have stubs for:
2324
[mypy-_abc.*,_opcode.*,_overlapped.*,_testcapi.*,_testinternalcapi.*,test.*]
2425
ignore_missing_imports = True
26+
27+
# Other untyped parts of the stdlib
28+
[mypy-idlelib.*]
29+
ignore_missing_imports = True

Misc/mypy/_colorize.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../Lib/_colorize.py

Misc/mypy/_pyrepl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../Lib/_pyrepl

0 commit comments

Comments
 (0)