Skip to content

Commit 1bb011c

Browse files
committed
upath.types: walk is only available on 3.12
1 parent 11ac5ad commit 1bb011c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

upath/types/__init__.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from typing import TYPE_CHECKING
99
from typing import Any
1010
from typing import BinaryIO
11-
from typing import Callable
1211
from typing import Literal
1312
from typing import Protocol
1413
from typing import TextIO
@@ -131,9 +130,9 @@ class CompatReadablePath(CompatJoinablePath, Protocol):
131130
# not available in Python 3.9.* pathlib:
132131
# - `__open_rb__`
133132
# - `info`
134-
# - `readlink`
135133
# - `copy`
136134
# - `copy_into`
135+
# - `walk`
137136
__slots__ = ()
138137

139138
def read_bytes(self) -> bytes: ...
@@ -149,13 +148,6 @@ def iterdir(self) -> Iterator[Self]: ...
149148

150149
def glob(self, pattern: str, *, recurse_symlinks: bool = ...) -> Iterator[Self]: ...
151150

152-
def walk(
153-
self,
154-
top_down: bool = ...,
155-
on_error: Callable[[Exception], Any] | None = ...,
156-
follow_symlinks: bool = ...,
157-
) -> Iterator[Self]: ...
158-
159151
def readlink(self) -> Self: ...
160152

161153

0 commit comments

Comments
 (0)