dmypy does not work right with disable_error_code/enable_error_code
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 20.6k
- Forks
- 3.3k
- PR merge metrics
- PR metrics pending
Description
Bug Report
dmypy doesn't support disable_error_code and enable_error_code key in pyproject.toml/mypy.ini?
in pyproject.toml:
# pyproject.toml
[tool.mypy]
disable_error_code = ['var-annotated']
run: dmypy run a.py
output: Timed out waiting for daemon to start
But when disable_error_code = [] or doesn't has disable_error_code, dmypy work right.
Your Environment
- Mypy version used: 0.981, 0.991
- Mypy command-line flags: dmypy run a/a.py
- Mypy configuration options from
pyproject.toml:disable_error_code = ['var-annotated'] - Python version used: 3.11
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing dmypy run a.py with disable_error_code = ['var-annotated'] in pyproject.toml, then compare it with an empty or absent setting. Trace the dmypy daemon startup and configuration handling; done means both disable_error_code and enable_error_code configurations work without the startup timeout and have regression coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100