mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
stdlib: add __slots__ (#14611)
This commit is contained in:
@@ -862,6 +862,7 @@ In the future, this property will contain the last metadata change time."""
|
||||
# on the allowlist for use as a Protocol starting in 3.14.
|
||||
@runtime_checkable
|
||||
class PathLike(ABC, Protocol[AnyStr_co]): # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
||||
__slots__ = ()
|
||||
@abstractmethod
|
||||
def __fspath__(self) -> AnyStr_co: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user