redis / redis-om-python

Object mapping, and more, for Redis and Python
MIT License
1.07k stars 108 forks source link

Fix type annotations for models #520

Open golyalpha opened 1 year ago

golyalpha commented 1 year ago

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.