Skip to content

(🐞) --show-error-code-links shows broken links with errors from plugins  #16375

@KotlinIsland

Description

@KotlinIsland
[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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrongtopic-error-reportingHow we report errorstopic-pluginsThe plugin API and ideas for new plugins

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions