Skip to content

Commit ed75931

Browse files
committed
mypy ignores
1 parent fbb1909 commit ed75931

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ repos:
3030
rev: v1.11.2
3131
hooks:
3232
- id: mypy
33-
args:
34-
[
35-
--strict,
36-
--install-types,
37-
--non-interactive,
38-
]
33+
args: [--strict, --install-types, --non-interactive]
3934
exclude: tests
40-
additional_dependencies: [pytest, attrs, imageio]
35+
additional_dependencies: [pytest, attrs, imageio, pydicom]

fileformats/application/medical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def pydicom_to_dict(
4444
dct: ty.Dict[str, ty.Any] = {}
4545
for elem in dcm.values():
4646
try:
47-
key = elem.keyword
47+
key = elem.keyword # type: ignore[union-attr]
4848
except AttributeError:
4949
key = None
5050
if not key:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ dev = [
4646
"fileformats[test]",
4747
"mypy >=1.5.1",
4848
"pydata-sphinx-theme >=0.13",
49+
"pydicom", # for typing
4950
]
5051
test = [
5152
"mypy >=1.5.1",

0 commit comments

Comments
 (0)