You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To have type hinting for model attributes what we can do is to add a new command model:docstring to generate automatically type hints for the models. Then we would just have to copy/paste generated hints in our model classes.
This command existed before so we just have to write it back here. IMO it should live in the ORM codebase so that non Masonite users can benefit of it.
It's linked to the issue #240 but not an exact duplicate. Indeed it would be great to generate a model docstring but here we need to generate the model type hints too.
So maybe generating two parts is the solution:
To have type hinting for model attributes what we can do is to add a new command
model:docstring
to generate automatically type hints for the models. Then we would just have to copy/paste generated hints in our model classes.This command existed before so we just have to write it back here. IMO it should live in the ORM codebase so that non Masonite users can benefit of it.
Originally posted by @girardinsamuel in #695 (comment)
The text was updated successfully, but these errors were encountered: