Skip to content

Commit 0883fd2

Browse files
authored
Enable some stricter mypy settings on Lib/_pyrepl (#119077)
1 parent 16b46eb commit 0883fd2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Lib/_pyrepl/mypy.ini

Lines changed: 1 addition & 4 deletions
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)