diff --git a/stdlib/2and3/genericpath.pyi b/stdlib/2and3/genericpath.pyi index aba0788a5..267900c90 100644 --- a/stdlib/2and3/genericpath.pyi +++ b/stdlib/2and3/genericpath.pyi @@ -6,8 +6,8 @@ if sys.version_info >= (3, 0): else: def commonprefix(m: Sequence[AnyStr]) -> AnyStr: ... if sys.version_info >= (3, 6): - from os import PathLike - def exists(path: Union[AnyStr, PathLike[AnyStr]]) -> bool: ... + from builtins import _PathLike + def exists(path: Union[AnyStr, _PathLike[AnyStr]]) -> bool: ... else: def exists(path: Text) -> bool: ... def isfile(path: Text) -> bool: ...