Skip to content

Commit afa39e8

Browse files
committed
Back out changes to tests._path
1 parent 04c6983 commit afa39e8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/_path.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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[return-value] # jaraco/jaraco.path#4
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[assignment] # jaraco/jaraco.path#4
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,8 +67,7 @@ def build(
6767
@functools.singledispatch
6868
def create(content: Union[str, bytes, FilesSpec], path):
6969
path.mkdir(exist_ok=True)
70-
# Mypy only looks at the signature of the main singledispatch method. So it must contain the complete Union
71-
build(content, prefix=path) # type: ignore[arg-type] # python/mypy#11727
70+
build(content, prefix=path) # type: ignore[arg-type]
7271

7372

7473
@create.register

0 commit comments

Comments
 (0)