Skip to content

Commit e306d7c

Browse files
committed
Removed None from type tests and hints
1 parent 0c2f1dc commit e306d7c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

itk_dev_shared_components/eflyt/eflyt_case.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ class Case:
1212
case_number: str
1313
deadline: date | None
1414
case_types: list[str]
15-
status: str | None
16-
cpr: str | None
17-
name: str | None
18-
case_worker: str | None
15+
status: str
16+
cpr: str
17+
name: str
18+
case_worker: str
1919

2020

2121
@dataclass

tests/test_eflyt/test_search.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ def test_extract_cases(self):
3333
self.assertIsInstance(case.case_number, str)
3434
self.assertIsInstance(case.case_types, list)
3535
self.assertIsInstance(case.deadline, (date, type(None)))
36-
self.assertIsInstance(case.status, (str, type(None)))
37-
self.assertIsInstance(case.cpr, (str, type(None)))
38-
self.assertIsInstance(case.name, (str, type(None)))
39-
self.assertIsInstance(case.case_worker, (str, type(None)))
36+
self.assertIsInstance(case.status, str)
37+
self.assertIsInstance(case.cpr, str)
38+
self.assertIsInstance(case.name, str)
39+
self.assertIsInstance(case.case_worker, str)
4040

4141
def test_open_case(self):
4242
"""Open a case and check the browser opened the case view"""

0 commit comments

Comments
 (0)