-
-
Notifications
You must be signed in to change notification settings - Fork 481
Issue 355 #376
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
Issue 355 #376
Conversation
kszmigiel
commented
Jun 1, 2020
- Closes Using TypedDict for templates rendering #355
stub for _build_app_dict (#351)
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.
Thanks a lot!
Let's also test that it works, because we already have a problematic use-case.
You will need to write something similar: https://github.com/typeddjango/django-stubs/blob/master/test-data/typecheck/test_request.yml
django-stubs/shortcuts.pyi
Outdated
@@ -13,15 +13,15 @@ from django.template.context import Context | |||
|
|||
def render_to_response( | |||
template_name: Union[str, Sequence[str]], | |||
context: Optional[Union[Context, Dict[str, Any]]] = ..., | |||
context: Optional[Union[Context, Mapping]] = ..., |
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.
Mapping
is generic. So, I guess it has to be Mapping[str, Any]
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.
sure thing
Revert "Allow template render to string helper functions to accept Co…
Thanks a lot! |