MAINT: Cleanup compatibility code for pathlib#17529
Conversation
`Path` can now never be none, and `PurePath` is not used and not in `__all__`.
|
This may be beyond the scope of this PR, but do we even need the The only place where it seems to be used is in |
|
No we don't - but we probably can't remove things from this module without deprecating them first. We should certainly change all the callers of these useless aliases. |
Isn't |
|
I don't think we ever made it clear what is and is not public - it doesn't have any underscores in it, so the default user may assume it public, even if that was never our intent. It's a thorny enough issue to definitely be out of scope for this PR. The C compat header has similar issues. |
|
Fair enough, let's keep this PR as it is then. |
|
Thanks Eric. |
Pathcan now never be none, andPurePathis not used and not in__all__.