python / python/mypy

dmypy not respecting changes to inline mypy configuration

Open
#12,069 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug topic-daemon
Dominant language
Python
Stars
20.6k
Forks
3.3k
PR merge metrics
PR metrics pending

Description

Bug Report

When using inline mypy rules (e.g. # mypy: ignore_errors) with dmypy, changes to the inline rule are not reflected in the output of dmypy.

To Reproduce

(Write your steps here:)

  1. Add # mypy: ignore_errors at the top of a file with errors
  2. Start dmypy
  3. Remove # mypy: ignore_errors

Expected Behavior

The errors should be displayed.

Actual Behavior

The errors are not displayed until dmypy is restarted.

Your Environment

  • Mypy version used: 0.931
  • Mypy command-line flags: N/A
  • Mypy configuration options from mypy.ini (and other config files):
  • Python version used: 3.9.9
  • Operating system and version: N/A

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the listed dmypy steps: add and remove # mypy: ignore_errors in a file with errors while the daemon is running. Read the dmypy handling of inline mypy rules and verify that changing the rule causes errors to appear without restarting dmypy.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.