Skip to content

Commit 81440c5

Browse files
[3.13] Enable some stricter mypy settings on Lib/_pyrepl (GH-119077) (#119428)
(cherry picked from commit 0883fd2) Co-authored-by: Alex Waygood <[email protected]>
1 parent 6bc7fc0 commit 81440c5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Lib/_pyrepl/mypy.ini

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,15 @@ platform = linux
1010
pretty = True
1111

1212
# Enable most stricter settings
13-
enable_error_code = ignore-without-code
13+
enable_error_code = ignore-without-code,redundant-expr
1414
strict = True
1515

1616
# Various stricter settings that we can't yet enable
1717
# Try to enable these in the following order:
18-
disallow_any_generics = False
1918
disallow_untyped_calls = False
2019
disallow_untyped_defs = False
2120
check_untyped_defs = False
2221

23-
disable_error_code = return
24-
2522
# Various internal modules that typeshed deliberately doesn't have stubs for:
2623
[mypy-_abc.*,_opcode.*,_overlapped.*,_testcapi.*,_testinternalcapi.*,test.*]
2724
ignore_missing_imports = True

0 commit comments

Comments
 (0)