-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
s_maxage
converts to an int
#2365
Conversation
This only addresses the specific attribute, there are others that have the same issue where |
@davidism, thanks for reasonable remark! Indeed, it is better to do everything at once, and not to correct identical issues one by one.
There is nothing like it anywhere else. Do I understand correctly that tests should also be written for all this? |
Oh. I've made all the necessary changes, but I'm not passing tests at this location: assert c.no_cache is None
assert c.private is None Because now these fields are by default casted to bool. And as you know, |
I'll figure out a way to deprecate the old behavior and transition to keys returning |
I deleted that comment, but still I didn't get it. Do I need to do anything with failing tests? |
No, you're fine. |
OK. Thanks a lot! I have been trying to implement this myself for the last couple of hours, but there are too many pitfalls in this case ... |
ResponseCacheControl.s_maxage
behavior
Wow! I did not understand why git thinks that I changed so much in the docstrings, I just added info about 2.1.1 |
ResponseCacheControl.s_maxage
raises error when set to an int #2364Checklist:
CHANGES.rst
summarizing the change and linking to the issue... versionchanged::
entries in any relevant code docs.pre-commit
hooks and fix any issues.pytest
andtox
, no tests failed.