You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am surprised how this feature could detect many cases that mypy could not after running it into one of my repos. However, it seems that @property makes this tool raise incompatible_override when overriding a property. I will try later if it also fails with @typing.override
Value of prop incompatible with base class <class 'delete.A'> (code: incompatible_override)
Base class: 'Literal[<property object at 0x000002682790C6D0>]'
Child class: 'Literal[<property object at 0x00000268294BFB50>]'
Cannot assign Literal[<property object at 0x00000268294BFB50>] to Literal[<property object at 0x000002682790C6D0>]
The text was updated successfully, but these errors were encountered:
I am surprised how this feature could detect many cases that mypy could not after running it into one of my repos. However, it seems that
@property
makes this tool raiseincompatible_override
when overriding a property. I will try later if it also fails with@typing.override
Minimal example that triggers this issue:
Output:
The text was updated successfully, but these errors were encountered: