-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
project: policyOrganization of the typeshed projectOrganization of the typeshed project
Description
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?
Metadata
Metadata
Assignees
Labels
project: policyOrganization of the typeshed projectOrganization of the typeshed project