craigds/django-typed-models

Type stubs?

Opened this issue · 2 comments

Type stubs for this library would be great so that it doesn't interfere with usage of static type checkers like pyright. Currently, since there's no stub file, static type checkers are unable to fully determine types of attributes of models that inherit from TypedModel.

Screenshot 2023-11-23 at 9 51 37 PM Screenshot 2023-11-23 at 9 53 35 PM

I generated a stub file in my project via pyright --createstub typedmodels, but it would be nice to have types maintained with this library in case the API changes in the future.