Skip to content

Commit 7993b9d

Browse files
committed
cleaning up mypy ignores
1 parent 90192ee commit 7993b9d

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,32 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.3.0
5+
rev: v6.0.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- id: check-yaml
1010
- id: check-added-large-files
1111
- repo: https://github.com/psf/black
12-
rev: 22.3.0
12+
rev: 25.12.0
1313
hooks:
1414
- id: black
1515
exclude: ^(fileformats/core/_version\.py)$
1616
args:
1717
- -l 88
1818
- repo: https://github.com/codespell-project/codespell
19-
rev: v2.1.0
19+
rev: v2.4.1
2020
hooks:
2121
- id: codespell
2222
exclude: ^(fileformats/core/_version\.py)$
2323
args:
2424
- --ignore-words=.codespell-ignorewords
2525
- repo: https://github.com/PyCQA/flake8
26-
rev: 7.0.0
26+
rev: 7.3.0
2727
hooks:
2828
- id: flake8
2929
- repo: https://github.com/pre-commit/mirrors-mypy
30-
rev: v1.11.2
30+
rev: v1.19.1
3131
hooks:
3232
- id: mypy
3333
args:

extras/fileformats/extras/application/archive.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454

5555
@converter(source_format=FsObject, target_format=Tar) # type: ignore[untyped-decorator]
5656
@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]
57+
@converter(source_format=Compressed, target_format=Tar[Compressed]) # type: ignore[untyped-decorator,misc]
5858
@converter(
59-
source_format=Compressed, target_format=TarGzip[Compressed], compression="gz" # type: ignore[misc]
59+
source_format=Compressed, target_format=TarGzip[Compressed], compression="gz" # type: ignore[untyped-decorator,misc]
6060
)
6161
@python.define(outputs={"out_file": Path}) # type: ignore[untyped-decorator]
6262
def create_tar(
@@ -105,8 +105,8 @@ def create_tar(
105105

106106
@converter(source_format=Tar, target_format=FsObject) # type: ignore[untyped-decorator]
107107
@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]
108+
@converter(source_format=Tar[Compressed], target_format=Compressed) # type: ignore[untyped-decorator,misc]
109+
@converter(source_format=TarGzip[Compressed], target_format=Compressed) # type: ignore[untyped-decorator,misc]
110110
@python.define(outputs={"out_file": Path}) # type: ignore[untyped-decorator]
111111
def extract_tar(
112112
in_file: FsObject,
@@ -137,7 +137,7 @@ def extract_tar(
137137

138138

139139
@converter(source_format=FsObject, target_format=Zip) # type: ignore[untyped-decorator]
140-
@converter(source_format=Compressed, target_format=Zip[Compressed]) # type: ignore[untyped-decorator]
140+
@converter(source_format=Compressed, target_format=Zip[Compressed]) # type: ignore[untyped-decorator,misc]
141141
@python.define(outputs={"out_file": Zip}) # type: ignore[untyped-decorator]
142142
def create_zip(
143143
in_file: FsObject,
@@ -184,7 +184,7 @@ def create_zip(
184184

185185

186186
@converter(source_format=Zip, target_format=FsObject) # type: ignore[untyped-decorator]
187-
@converter(source_format=Zip[Compressed], target_format=Compressed) # type: ignore[untyped-decorator]
187+
@converter(source_format=Zip[Compressed], target_format=Compressed) # type: ignore[untyped-decorator,misc]
188188
@python.define(outputs={"out_file": Path}) # type: ignore[untyped-decorator]
189189
def extract_zip(in_file: Zip, extract_dir: ty.Optional[Path] = None) -> Path:
190190

extras/fileformats/extras/generic/converters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
T = FileSet.type_var("T")
1111

1212

13-
@converter(target_format=SetOf[T], source_format=DirectoryOf[T]) # type: ignore[untyped-decorator]
13+
@converter(target_format=SetOf[T], source_format=DirectoryOf[T]) # type: ignore[untyped-decorator,misc]
1414
@python.define(outputs={"out_file": TypedSet}) # type: ignore[untyped-decorator]
1515
def list_dir_contents(in_file: TypedDirectory) -> TypedSet:
1616
classified_set: ty.Type[TypedSet] = SetOf.__class_getitem__(*in_file.content_types) # type: ignore[assignment, arg-type]
1717
return classified_set(in_file.contents)
1818

1919

20-
@converter(target_format=DirectoryOf[T], source_format=SetOf[T]) # type: ignore[untyped-decorator]
20+
@converter(target_format=DirectoryOf[T], source_format=SetOf[T]) # type: ignore[untyped-decorator,misc]
2121
@python.define(outputs={"out_file": TypedDirectory}) # type: ignore[untyped-decorator]
2222
def put_contents_in_dir(
2323
in_file: TypedSet,

0 commit comments

Comments
 (0)