Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type stubs? #75

Open
jacobjove opened this issue Nov 24, 2023 · 2 comments
Open

Type stubs? #75

jacobjove opened this issue Nov 24, 2023 · 2 comments

Comments

@jacobjove
Copy link

jacobjove commented Nov 24, 2023

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
@jacobjove
Copy link
Author

jacobjove commented Nov 25, 2023

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.

@jacobjove
Copy link
Author

#76

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant