Skip to content

Commit a2c9345

Browse files
committed
Removes last p3.8, fixes errors shown by mypy
1 parent c3e3dc4 commit a2c9345

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ repos:
3030
- pydantic
3131
- types-requests
3232
- types-Jinja2
33+
- types-pydicom
34+

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[mypy]
2-
python_version = 3.8
2+
python_version = 3.10
33
warn_return_any=True
44
strict_optional=True
55
warn_no_return=True

tests/factories.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from dicomtrolley.core import (
99
InstanceReference,
1010
SeriesReference,
11+
Study,
1112
StudyReference,
1213
)
1314
from dicomtrolley.dicom_qr import DICOMQR
@@ -127,15 +128,15 @@ def create_image_level_study(
127128
study_instance_uid,
128129
series_instance_uids: List[str],
129130
sop_class_uids: List[str],
130-
) -> Dataset:
131+
) -> Study:
131132
return DICOMQR.parse_c_find_response(
132133
create_c_find_image_response(
133134
study_instance_uid, series_instance_uids, sop_class_uids
134135
)
135136
)[0]
136137

137138

138-
def quick_image_level_study(uid) -> Dataset:
139+
def quick_image_level_study(uid) -> Study:
139140
"""Study with 2 series and some Instances in each series"""
140141
return create_image_level_study(
141142
uid,

0 commit comments

Comments
 (0)