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

Add some type-hints to Model.py #881

Closed

Conversation

JarriqTheTechie
Copy link
Contributor

No description provided.

@JarriqTheTechie
Copy link
Contributor Author

When adding multiple return types I will use Union instead of pipe operator.

src/masoniteorm/models/Model.py Outdated Show resolved Hide resolved
@josephmancuso
Copy link
Member

also tests are failing

@JarriqTheTechie
Copy link
Contributor Author

also tests are failing

Tests are failing due to issues with backwards compatibility with older versions of python. That's why I'll use Union types instead of | as a type separator.

Corrected incorrect type for __internal_cast_map__
@josephmancuso
Copy link
Member

please fix tests failing. i'd like to merge this in

@josephmancuso
Copy link
Member

closing bc of tests failing

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

Successfully merging this pull request may close these issues.

2 participants