|
52 | 52 | # ] |
53 | 53 |
|
54 | 54 |
|
55 | | -@converter(source_format=FsObject, target_format=Tar) # type: ignore[misc] |
56 | | -@converter(source_format=FsObject, target_format=TarGzip, compression="gz") # type: ignore[misc] |
57 | | -@converter(source_format=Compressed, target_format=Tar[Compressed]) # type: ignore[misc] |
| 55 | +@converter(source_format=FsObject, target_format=Tar) # type: ignore[untyped-decorator] |
| 56 | +@converter(source_format=FsObject, target_format=TarGzip, compression="gz") # type: ignore[untyped-decorator] |
| 57 | +@converter(source_format=Compressed, target_format=Tar[Compressed]) # type: ignore[untyped-decorator] |
58 | 58 | @converter( |
59 | 59 | source_format=Compressed, target_format=TarGzip[Compressed], compression="gz" # type: ignore[misc] |
60 | 60 | ) |
61 | | -@python.define(outputs={"out_file": Path}) # type: ignore[misc] |
| 61 | +@python.define(outputs={"out_file": Path}) # type: ignore[untyped-decorator] |
62 | 62 | def create_tar( |
63 | 63 | in_file: FsObject, |
64 | 64 | out_file: ty.Optional[Path] = None, |
@@ -103,11 +103,11 @@ def create_tar( |
103 | 103 | return Path(out_file) |
104 | 104 |
|
105 | 105 |
|
106 | | -@converter(source_format=Tar, target_format=FsObject) # type: ignore[misc] |
107 | | -@converter(source_format=TarGzip, target_format=FsObject) # type: ignore[misc] |
108 | | -@converter(source_format=Tar[Compressed], target_format=Compressed) # type: ignore[misc] |
109 | | -@converter(source_format=TarGzip[Compressed], target_format=Compressed) # type: ignore[misc] |
110 | | -@python.define(outputs={"out_file": Path}) # type: ignore[misc] |
| 106 | +@converter(source_format=Tar, target_format=FsObject) # type: ignore[untyped-decorator] |
| 107 | +@converter(source_format=TarGzip, target_format=FsObject) # type: ignore[untyped-decorator] |
| 108 | +@converter(source_format=Tar[Compressed], target_format=Compressed) # type: ignore[untyped-decorator] |
| 109 | +@converter(source_format=TarGzip[Compressed], target_format=Compressed) # type: ignore[untyped-decorator] |
| 110 | +@python.define(outputs={"out_file": Path}) # type: ignore[untyped-decorator] |
111 | 111 | def extract_tar( |
112 | 112 | in_file: FsObject, |
113 | 113 | extract_dir: ty.Optional[Path] = None, |
@@ -136,9 +136,9 @@ def extract_tar( |
136 | 136 | return extracted[0] |
137 | 137 |
|
138 | 138 |
|
139 | | -@converter(source_format=FsObject, target_format=Zip) # type: ignore[misc] |
140 | | -@converter(source_format=Compressed, target_format=Zip[Compressed]) # type: ignore[misc] |
141 | | -@python.define(outputs={"out_file": Zip}) # type: ignore[misc] |
| 139 | +@converter(source_format=FsObject, target_format=Zip) # type: ignore[untyped-decorator] |
| 140 | +@converter(source_format=Compressed, target_format=Zip[Compressed]) # type: ignore[untyped-decorator] |
| 141 | +@python.define(outputs={"out_file": Zip}) # type: ignore[untyped-decorator] |
142 | 142 | def create_zip( |
143 | 143 | in_file: FsObject, |
144 | 144 | out_file: ty.Optional[Path] = None, |
@@ -183,9 +183,9 @@ def create_zip( |
183 | 183 | return Zip(out_file) |
184 | 184 |
|
185 | 185 |
|
186 | | -@converter(source_format=Zip, target_format=FsObject) # type: ignore[misc] |
187 | | -@converter(source_format=Zip[Compressed], target_format=Compressed) # type: ignore[misc] |
188 | | -@python.define(outputs={"out_file": Path}) # type: ignore[misc] |
| 186 | +@converter(source_format=Zip, target_format=FsObject) # type: ignore[untyped-decorator] |
| 187 | +@converter(source_format=Zip[Compressed], target_format=Compressed) # type: ignore[untyped-decorator] |
| 188 | +@python.define(outputs={"out_file": Path}) # type: ignore[untyped-decorator] |
189 | 189 | def extract_zip(in_file: Zip, extract_dir: ty.Optional[Path] = None) -> Path: |
190 | 190 |
|
191 | 191 | if extract_dir is None: |
|
0 commit comments