Inheriting from two data classes causes error Definition of "__match_args__" in base class "A" is incompatible with definition in base class "B"
#12349
Labels
Bug Report
When creating a derived class that inherits from two data classes, mypy will immediately flag the derived class with
Definition of "__match_args__" in base class "A" is incompatible with definition in base class "B"
To Reproduce
mypy .
and observe the error:Expected Behavior
Given that I did not set
__match_args__
myself makes this error really hard to understand. I would have expected no such error to occur, especially as the code should work for older Python versions that don't support pattern matching yet.Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: