-
-
Notifications
You must be signed in to change notification settings - Fork 485
Fix types for sessions #1173
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
Fix types for sessions #1173
Conversation
50d2627
to
c8c6f05
Compare
I found some problems with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This can be None, which type stubs no longer allow after typeddjango#1129
c8c6f05
to
ded4e33
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Can you please run black
to fix https://github.com/typeddjango/django-stubs/actions/runs/3385096206/jobs/5622845846 ?
I think I can enable |
Yes pre-commit.ci ftw! |
I guess my local pre-commit didn't get applied because this was a rebase commit, and git doesn't fire hooks during rebase 😢 |
The session key can be None, which type stubs no longer allow after #1129, and the session_dict can be
dict[str, Any]