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-call
Bug Report
If I have
# type: ignore[no-untyped-call]anddisable_error_code = no-untyped-callandstrict = true, I don't get errors.To Reproduce
Create
mypy.inias below and put this tofoo.pyExpected Behavior
error about unnecessary ignore comment on SECOND line (but no error on first line as
strict = truemeans you must use type hints when defining)Actual Behavior
no error
Your Environment
mypy.ini(and other config files):