Skip to content

Commit b32e01e

Browse files
add testPyProjectTOMLSettingOfWrongType
1 parent 10df788 commit b32e01e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test-data/unit/check-flags.test

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2482,3 +2482,10 @@ A = Union[C, List] # OK
24822482
-- check_untyped_defs is False by default.
24832483
def f():
24842484
x: int = "no" # N: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs
2485+
2486+
[case testPyProjectTOMLSettingOfWrongType]
2487+
# E: Invalid error code(s): true
2488+
[file pyproject.toml]
2489+
\[tool.mypy]
2490+
enable_error_code = true
2491+

0 commit comments

Comments
 (0)