You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TLDR: Let's rename AnyPath to PathName (or a better alias).
I seem to remember that @JelleZijlstra didn't like the name AnyPath as an alias for str | bytes | PathLike[str] | PathLike[bytes] when I introduced it. I agreed, but couldn't come up with a better name. When working on #5467, it became apparent to me that having a "real" AnyPath, i.e. an alias that is basically AnyPath[_T] = _T | PathLike[_T] would be quite useful. I don't think there is a way to have a generic alias yet, but I still propose we should rename AnyPath in preparation and to avoid confusion with AnyStr. The best I can come up with at the moment is PathName. Any better ideas? Other suggestions? Not a good idea?
TLDR: Let's rename
AnyPathtoPathName(or a better alias).I seem to remember that @JelleZijlstra didn't like the name
AnyPathas an alias forstr | bytes | PathLike[str] | PathLike[bytes]when I introduced it. I agreed, but couldn't come up with a better name. When working on #5467, it became apparent to me that having a "real"AnyPath, i.e. an alias that is basicallyAnyPath[_T] = _T | PathLike[_T]would be quite useful. I don't think there is a way to have a generic alias yet, but I still propose we should renameAnyPathin preparation and to avoid confusion withAnyStr. The best I can come up with at the moment isPathName. Any better ideas? Other suggestions? Not a good idea?