-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrongtopic-error-reportingHow we report errorsHow we report errorstopic-type-ignore# type: ignore comments# type: ignore comments
Description
Bug Report
If I have # type: ignore[no-untyped-call] and disable_error_code = no-untyped-call and strict = true, I don't get errors.
To Reproduce
Create mypy.ini as below and put this to foo.py
def foo(): pass # type: ignore
foo() # type: ignore[no-untyped-call]Expected Behavior
error about unnecessary ignore comment on SECOND line (but no error on first line as strict = true means you must use type hints when defining)
Actual Behavior
no error
Your Environment
- Mypy version used: 0.9.10
- Mypy command-line flags: none
- Mypy configuration options from
mypy.ini(and other config files):
[mypy]
strict = True
disable_error_code = no-untyped-callMetadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongtopic-error-reportingHow we report errorsHow we report errorstopic-type-ignore# type: ignore comments# type: ignore comments