Skip to content

Commit

Permalink
mypy ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Sep 20, 2024
1 parent 39553dd commit 7c11565
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
9 changes: 2 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ repos:
rev: v1.11.2
hooks:
- id: mypy
args:
[
--strict,
--install-types,
--non-interactive,
]
args: [--strict, --install-types, --non-interactive]
exclude: tests
additional_dependencies: [pytest, attrs, imageio]
additional_dependencies: [pytest, attrs, imageio, pydicom]
2 changes: 1 addition & 1 deletion fileformats/application/medical.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def pydicom_to_dict(
dct: ty.Dict[str, ty.Any] = {}
for elem in dcm.values():
try:
key = elem.keyword
key = elem.keyword # type: ignore[union-attr]
except AttributeError:
key = None
if not key:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ dev = [
"fileformats[test]",
"mypy >=1.5.1",
"pydata-sphinx-theme >=0.13",
"pydicom", # for typing
]
test = [
"mypy >=1.5.1",
Expand Down

0 comments on commit 7c11565

Please sign in to comment.