mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Update os.fspath(path: PathLike) to return Any since Union return types are troublesome
This commit is contained in:
@@ -198,7 +198,7 @@ if sys.version_info >= (3, 6):
|
||||
@overload
|
||||
def fspath(path: bytes) -> bytes: ...
|
||||
@overload
|
||||
def fspath(path: PathLike) -> Union[str, bytes]: ...
|
||||
def fspath(path: PathLike) -> Any: ...
|
||||
|
||||
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