Return type is Self
when calling an inherited decorated classmethod that returns Self
#19023
Labels
Self
when calling an inherited decorated classmethod that returns Self
#19023
Bug Report
When calling an inherited decorated classmethod that returns
Self
, mypy does not resolve the type and thinks the type of the return value isSelf
.To Reproduce
https://mypy-play.net/?mypy=latest&python=3.13&flags=strict&gist=664aeee2f4339ce869129dfba8017289
Expected Behavior
The code should type check.
Actual Behavior
Your Environment
--strict
The text was updated successfully, but these errors were encountered: