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
pyright rejects the above code since it is using the typeshed annotations (mypy accepts it for some reason).
error: Argument of type "property" cannot be assigned to parameter "f" of type "_F@final" in function "final"
Type "property" is incompatible with bound type "(*args: Any, **kwargs: Any) -> Any" for type variable "_F@final"
Type "property" cannot be assigned to type "(*args: Any, **kwargs: Any) -> Any" (reportGeneralTypeIssues)
Activity
JelleZijlstra commentedon Aug 30, 2021
Thank you! We should just type it with an unconstrained TypeVar.
BUG: typing.final supports properties (#5985)