Skip to content

dmypy run won't run, prints "Restarting: configuration changed" when ignore_missing_imports = True is configured #10709

Closed
@tadeu

Description

@tadeu

Bug Report

Since at least v0.902, executing dmypy run in a project that has ignore_missing_imports = True in mypy.ini is not working anymore.

To Reproduce

(Write your steps here:)

  1. Create src/something.py with some code in it, and create mypy.ini with:
[mypy]
files = src
ignore_missing_imports = True
  1. Run dmypy run

Expected Behavior

dmypy run should execute correctly, outputting something like:

Daemon started
src\something.py:1: error: Incompatible types in assignment (expression has type "str", variable has type "int")
Found 1 error in 1 file (checked 26 source files)

Actual Behavior

dmypy run keeps showing:

Restarting: configuration changed
Daemon stopped
Daemon started
Response: {'restart': 'configuration changed', 'platform': 'win32', 'python_version': '3_9', 'roundtrip_time': 0.5543885231018066}

even when trying to run it again.

Your Environment

  • Mypy version used: v0.902, v0.910 and 0.920+dev.379622de482ec16dd1676ad6d183dcfca5203194
  • Mypy command-line flags: dmypy run
  • Mypy configuration options from mypy.ini (and other config files):
[mypy]
files = src
ignore_missing_imports = True
  • Python version used: 3.9.5
  • Operating system and version: Windows 10 21H1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions