Incorrect stub generation for subclasses of pydantic.BaseModel
#16968
Labels
bug
mypy got something wrong
pydantic.BaseModel
#16968
Bug Report
stubgen
does not properly generate ellipses for default values set in the scope of the class body of a Pydantic model.To Reproduce
Running
stubgen -m example
Should produce
Expected Behavior
stubgen
should be populating the default annotation with ellipses, instead they are missing.Actual Behavior
Your Environment
mypy 1.8.0 (compiled: yes)
stubgen -m example
mypy.ini
(and other config files):N/A
3.11.8
The text was updated successfully, but these errors were encountered: