File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ def check_follow_imports(choice: str) -> str:
94
94
'plugins' : lambda s : [p .strip () for p in s .split (',' )],
95
95
'always_true' : lambda s : [p .strip () for p in s .split (',' )],
96
96
'always_false' : lambda s : [p .strip () for p in s .split (',' )],
97
+ 'disable_error_code' : lambda s : [p .strip () for p in s .split (',' )],
98
+ 'enable_error_code' : lambda s : [p .strip () for p in s .split (',' )],
97
99
'package_root' : lambda s : [p .strip () for p in s .split (',' )],
98
100
'cache_dir' : expand_path ,
99
101
'python_executable' : expand_path ,
Original file line number Diff line number Diff line change @@ -1078,6 +1078,15 @@ always_true = YOLO1, YOLO
1078
1078
always_false = BLAH, BLAH1
1079
1079
[builtins fixtures/bool.pyi]
1080
1080
1081
+ [case testDisableErrorCodeConfigFile]
1082
+ # flags: --config-file tmp/mypy.ini --disallow-untyped-defs
1083
+ import foo
1084
+ def bar():
1085
+ pass
1086
+ [file mypy.ini]
1087
+ \[mypy]
1088
+ disable_error_code = import, no-untyped-def
1089
+
1081
1090
[case testCheckDisallowAnyGenericsNamedTuple]
1082
1091
# flags: --disallow-any-generics
1083
1092
from typing import NamedTuple
You can’t perform that action at this time.
0 commit comments