-
-
Notifications
You must be signed in to change notification settings - Fork 943
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 request argument to TemplateResponse (v1.x) #2199
Add request argument to TemplateResponse (v1.x) #2199
Conversation
@@ -142,17 +142,16 @@ def get_template(self, name: str) -> "jinja2.Template": | |||
|
|||
def TemplateResponse( | |||
self, | |||
request: Request, |
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.
Any reason why this is not an optional argument so it can be released without breaking?
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.
This was discussed on #2191.
The diff here is actually incomplete.
I meant to create a PR so I could see the diff between the PR that adds deprecation and what is supposed to be refactor for v1. I mean, target the PR you are building from this one. |
@Kludex this PR is the target repo state after removing all deprecations. |
Not after, but for 1.0. |
I've applied this on #2384, and given co-author to @alex-oleshkevich . FYI |
This PR removes backward compatibility done in #2191
To be merged after 1.0 release.