mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
os.fsencode(PathLike[AnyStr]) produces AnyStr (#4233)
PathLike is generic over AnyStr of7587e7f1c1. Also see89de36afa4, which changed this to `Any` before `AnyStr` was available.
This commit is contained in:
@@ -320,7 +320,7 @@ if sys.version_info >= (3, 6):
|
||||
@overload
|
||||
def fspath(path: bytes) -> bytes: ...
|
||||
@overload
|
||||
def fspath(path: PathLike[Any]) -> Any: ...
|
||||
def fspath(path: PathLike[AnyStr]) -> AnyStr: ...
|
||||
|
||||
def get_exec_path(env: Optional[Mapping[str, str]] = ...) -> List[str]: ...
|
||||
# NOTE: get_exec_path(): returns List[bytes] when env not None
|
||||
|
||||
Reference in New Issue
Block a user