1- # from jaraco.path 3.7
1+ # from jaraco.path 3.7.1
22
33import functools
44import 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
3030def _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
3434def 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
6868def 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