Skip to content

mypy cache bug in particular configuration of packages, files, and imports #15762

Description

@dzhlobo

Bug Report

When I run mypy to type check my classes against protocols and the check passes it no longer fails after I introduce errors later until I clean cache.

To Reproduce

I made a demo with steps to reproduce in dockerized environment: https://github.com/dzhlobo/mypy-cache-issue-demo

Expected Behavior

mypy fails when I change protocol implementation and introduce an error.

Actual Behavior

mypy passes.

Your Environment

  • Mypy version used: 1.4.1
  • Python version used: 3.11.4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions