-
-
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-pluginsThe plugin API and ideas for new pluginsThe plugin API and ideas for new plugins
Description
[tool.mypy]
plugins = ["pydantic.mypy"]
from pydantic import BaseModel
def foo() -> "A":
return A()
class A(BaseModel):
a = foo()
> pip install mypy pydantic
> mypy --show-error-code-links test.py
test.py:7: error: Untyped fields disallowed [pydantic-field]
test.py:7: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-pydantic-field for more info
Found 1 error in 1 file (checked 1 source file)
The link goes to a white page.
DetachHead and Loch64
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongtopic-error-reportingHow we report errorsHow we report errorstopic-pluginsThe plugin API and ideas for new pluginsThe plugin API and ideas for new plugins