Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
KotlinIsland opened this issue Oct 31, 2023 · 0 comments · Fixed by #16383
Closed

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

KotlinIsland opened this issue Oct 31, 2023 · 0 comments · Fixed by #16383
Labels
bug mypy got something wrong topic-error-reporting How we report errors topic-plugins The plugin API and ideas for new plugins

Comments

@KotlinIsland
Copy link
Contributor

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

@KotlinIsland KotlinIsland added the bug mypy got something wrong label Oct 31, 2023
@AlexWaygood AlexWaygood added topic-plugins The plugin API and ideas for new plugins topic-error-reporting How we report errors labels Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong topic-error-reporting How we report errors topic-plugins The plugin API and ideas for new plugins
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants