Open
Description
Bug Report
(A clear and concise description of what the bug is.)
Coverage not showing the same result as mypy
To Reproduce
class A(BaseModel):
b: str = Field(default=..., description="some var")
Expected Behavior
To get the code coverage based on what I get with the mypy src call
Actual Behavior
I'm getting low coverage despite mypy not complaining after these ignores
Ignore missing imports and no warn unused ignores just doesnt apply to coverage, it shows passed when using mypy src but fails on coverage
Your Environment
- Mypy version used: latest
- Mypy command-line flags: mypy
--disallow-untyped-calls
--disallow-untyped-defs
--check-untyped-defs
--follow-imports=normal
--explicit-package-bases
--allow-untyped-globals
--ignore-missing-imports
--no-warn-unused-ignores
--warn-return-any
. - Mypy configuration options from
mypy.ini
(and other config files): - Python version used: 3.13.2