| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| if sys.version_info >= (3, 13): | ||
| if sys.version_info >= (3, 15): | ||
| pass | ||
| elif sys.version_info >= (3, 13): |
There was a problem hiding this comment.
same
Sorry, something went wrong.
There was a problem hiding this comment.
Actually @srittau do you have strong opinions on how cases like this should be formatted? We have one set of slots for 3.10/3.11, another for 3.12, yet another for 3.13/3.14, and then no slots in 3.15. We could instead wrap up the whole thing in an if sys.version_info < (3, 15):, but that means the rest gets indented more.
Sorry, something went wrong.
There was a problem hiding this comment.
I find a double indent slightly more readable as it makes it clear that the following was removed in 3.15, while I find the "empty" branch a bit weird. But I don't really have a strong opinion, so let's use what you prefer.
Sorry, something went wrong.
There was a problem hiding this comment.
All right, I'll change it. Your version will also make the edit easier when we drop support for 3.12.
Sorry, something went wrong.
| def as_uri(self) -> str: ... | ||
| def is_absolute(self) -> bool: ... | ||
| if sys.version_info >= (3, 13): | ||
| if sys.version_info >= (3, 15): |
There was a problem hiding this comment.
This is sort of similar. The method has been there since the beginning, deprecated since 3.13, gone in 3.15. In this case we shouldn't unconditionally mark it as deprecated, because the replacement (os.path.isreserved) is also new in 3.13.
Sorry, something went wrong.
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Add Python 3.15 stdlib updates for path helpers, HTTP helpers, importlib, inspect, pydoc, pathlib, glob, and zipimport.
Relevant report entries