Skip to content

get_object_or_404 wrong type annotation in first parameter #9

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

Closed
K0Te opened this issue Jan 26, 2019 · 0 comments
Closed

get_object_or_404 wrong type annotation in first parameter #9

K0Te opened this issue Jan 26, 2019 · 0 comments

Comments

@K0Te
Copy link
Contributor

K0Te commented Jan 26, 2019

Hi,

According to django documentation:
"klass
A Model class, a Manager, or a QuerySet instance from which to get the object."

Current annotation is: klass: Union[Type[Model], str]

PR: #8

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

No branches or pull requests

2 participants