Skip to content

Commit 89de36a

Browse files
committed
Update os.fspath(path: PathLike) to return Any since Union return types are troublesome
1 parent 99a1afd commit 89de36a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/3/os/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ if sys.version_info >= (3, 6):
198198
@overload
199199
def fspath(path: bytes) -> bytes: ...
200200
@overload
201-
def fspath(path: PathLike) -> Union[str, bytes]: ...
201+
def fspath(path: PathLike) -> Any: ...
202202

203203
def get_exec_path(env: Optional[Mapping[str, str]] = ...) -> List[str]: ...
204204
# NOTE: get_exec_path(): returns List[bytes] when env not None

0 commit comments

Comments
 (0)