Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
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
|
…0747)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`
Uh oh!
There was an error while loading.Please reload this page.
There used to be a meaningful distinction between these modules:
pathlib
importedpathlib._abc
but 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._JoinablePath
pathlib._abc.ReadablePath
-->pathlib.types._ReadablePath
pathlib._abc.WritablePath
-->pathlib.types._WritablePath
The
pathlib._abc
module is deleted.