Classmethods get type annotations declared their return type as the various base model classes.
This broke code hints and linters as a result, because they were incorrectly told Model.get returned HashModel (or whichever base model was in use) rather than Model.
Classmethods
get
type annotations declared their return type as the various base model classes.This broke code hints and linters as a result, because they were incorrectly told Model.get returned
HashModel
(or whichever base model was in use) rather thanModel
.