Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
GH-128520: Mergepathlib._abc intopathlib.types#130747
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There used to be a meaningful distinction between these modules: `pathlib`imported `pathlib._abc` but not `pathlib.types`. This is no longer thecase (neither module is imported), so we move the ABCs as follows:- `pathlib._abc.JoinablePath` --> `pathlib.types._JoinablePath`- `pathlib._abc.ReadablePath` --> `pathlib.types._ReadablePath`- `pathlib._abc.WritablePath` --> `pathlib.types._WritablePath`
d0eb01c intopython:mainUh oh!
There was an error while loading.Please reload this page.
bedevere-bot commentedMar 3, 2025
|
Uh oh!
There was an error while loading.Please reload this page.
There used to be a meaningful distinction between these modules:
pathlibimportedpathlib._abcbut notpathlib.types, and so zero-cost type annotations could only be added to the latter. This is no longer the case (neither module is imported), so we move the ABCs as follows:pathlib._abc.JoinablePath-->pathlib.types._JoinablePathpathlib._abc.ReadablePath-->pathlib.types._ReadablePathpathlib._abc.WritablePath-->pathlib.types._WritablePathThe
pathlib._abcmodule is deleted.