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

dmypy only formats output in json the first time it's executed #18713

Open
johnfn opened this issue Feb 20, 2025 · 0 comments
Open

dmypy only formats output in json the first time it's executed #18713

johnfn opened this issue Feb 20, 2025 · 0 comments
Labels
bug mypy got something wrong topic-daemon dmypy

Comments

@johnfn
Copy link

johnfn commented Feb 20, 2025

Bug Report

dmypy only outputs in json the first time it's invoked with --output=json.

To Reproduce

dmypy stop
dmypy run -- --output=json
dmypy run -- --output=json

Expected Behavior

Every invocation returns JSON.

Actual Behavior

Only the first one does.

$ dmypy run -- --output=json
Daemon started
{"file": "myfile.py", "line": 3, "column": 0, "message": "Function is missing a type annotation", "hint": null, "code": "no-untyped-def", "severity": "error"}

$ dmypy run -- --output=json
a_different_file.py:22: error: Missing type parameters for generic type "Query"  [type-arg]

Your Environment

mypy --version
mypy 1.15.0 (compiled: yes)

python --version
Python 3.11.11
@johnfn johnfn added the bug mypy got something wrong label Feb 20, 2025
@sterliakov sterliakov added the topic-daemon dmypy label Feb 22, 2025
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-daemon dmypy
Projects
None yet
Development

No branches or pull requests

2 participants