File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -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[return-value] # jaraco/jaraco.path#4
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[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
6868def 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
You can’t perform that action at this time.
0 commit comments