From 89de36afa4bd75cc49369626e3e8aa3190075042 Mon Sep 17 00:00:00 2001 From: Semyon Proshev Date: Tue, 21 Mar 2017 15:00:46 +0300 Subject: [PATCH] Update `os.fspath(path: PathLike)` to return `Any` since `Union` return types are troublesome --- stdlib/3/os/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/3/os/__init__.pyi b/stdlib/3/os/__init__.pyi index 34f697d08..27d3780d8 100644 --- a/stdlib/3/os/__init__.pyi +++ b/stdlib/3/os/__init__.pyi @@ -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