Skip to content

Commit

Permalink
PurePath is not a PathLike subclass
Browse files Browse the repository at this point in the history
It matches the protocol, but it's not an explicit subclass. As far
as I can see, it seems okay to just remove that.

related to python#3968
  • Loading branch information
tungol committed Dec 4, 2023
1 parent fe48f37 commit cdfae40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/pathlib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ from _typeshed import (
)
from collections.abc import Callable, Generator, Iterator, Sequence
from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper
from os import PathLike, stat_result
from os import stat_result
from types import TracebackType
from typing import IO, Any, BinaryIO, overload
from typing_extensions import Literal, Self
Expand All @@ -22,7 +22,7 @@ if sys.version_info >= (3, 9):

__all__ = ["PurePath", "PurePosixPath", "PureWindowsPath", "Path", "PosixPath", "WindowsPath"]

class PurePath(PathLike[str]):
class PurePath:
@property
def parts(self) -> tuple[str, ...]: ...
@property
Expand Down

0 comments on commit cdfae40

Please sign in to comment.