Skip to content

Commit 8484ecc

Browse files
committed
🧎‍♀️ Genuflect to the types.
Re-sync jaraco.path 3.7.1.
1 parent d4aa505 commit 8484ecc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/_path.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# from jaraco.path 3.7
1+
# from jaraco.path 3.7.1
22

33
import functools
44
import pathlib
@@ -11,7 +11,7 @@ class Symlink(str):
1111
"""
1212

1313

14-
FilesSpec = Dict[str, Union[str, bytes, Symlink, 'FilesSpec']] # type: ignore
14+
FilesSpec = Dict[str, Union[str, bytes, Symlink, 'FilesSpec']]
1515

1616

1717
@runtime_checkable
@@ -28,12 +28,12 @@ def symlink_to(self, target): ... # pragma: no cover
2828

2929

3030
def _ensure_tree_maker(obj: Union[str, TreeMaker]) -> TreeMaker:
31-
return obj if isinstance(obj, TreeMaker) else pathlib.Path(obj) # type: ignore
31+
return obj if isinstance(obj, TreeMaker) else pathlib.Path(obj) # type: ignore[return-value]
3232

3333

3434
def build(
3535
spec: FilesSpec,
36-
prefix: Union[str, TreeMaker] = pathlib.Path(), # type: ignore
36+
prefix: Union[str, TreeMaker] = pathlib.Path(), # type: ignore[assignment]
3737
):
3838
"""
3939
Build a set of files/directories, as described by the spec.
@@ -67,7 +67,7 @@ def build(
6767
@functools.singledispatch
6868
def create(content: Union[str, bytes, FilesSpec], path):
6969
path.mkdir(exist_ok=True)
70-
build(content, prefix=path) # type: ignore
70+
build(content, prefix=path) # type: ignore[arg-type]
7171

7272

7373
@create.register

0 commit comments

Comments
 (0)