Type error randomly raised when using a decorator and a type: ignore
comment
#18125
Labels
bug
mypy got something wrong
type: ignore
comment
#18125
To Reproduce
pydantic==2.9.2
installed.t.py
:mypy --cache-dir=/dev/null --python-version 3.10 --disable-error-code empty-body --warn-unused-ignores t.py
Mypy will randomly raise:
t.py:10: error: Unused "type: ignore" comment [unused-ignore]
And sometimes suceed.
Sorry I couldn't provide more details, the issue is really weird and it seems like mypy doesn't produce fully reproducible results in this case.
Your Environment
--cache-dir=/dev/null --python-version 3.10 --disable-error-code empty-body --warn-unused-ignores
mypy.ini
(and other config files):3.12
The text was updated successfully, but these errors were encountered: