Skip to content

Commit 4b84f4d

Browse files
committed
refactor: changed type hints on submission info model
1 parent d794f31 commit 4b84f4d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/dve/core_engine/models.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,18 @@ class SubmissionInfo(AuditRecord):
5151
"""The name of the submitted file."""
5252
file_extension: str
5353
"""The extension of the file received."""
54-
submission_method: str = None # type: ignore
54+
submission_method: Optional[str] = None # type: ignore
5555
"""The method that the file was submitted"""
56-
submitting_org: str = None # type: ignore
56+
submitting_org: Optional[str] = None # type: ignore
5757
"""The organisation who submitted the file."""
58-
reporting_period_start: str = None # type: ignore
58+
reporting_period_start: Optional[str] = None # type: ignore
5959
"""The start of the reporting period the submission relates to."""
60-
reporting_period_end: str = None # type: ignore
60+
reporting_period_end: Optional[str] = None # type: ignore
6161
"""The end of the reporting period the submission relates to."""
62-
file_size: int = None # type: ignore
62+
file_size: Optional[int] = None # type: ignore
6363
"""The size (in bytes) of the file received."""
64-
datetime_received: dt.datetime = None # type: ignore
65-
"""The datetime the SEFT transfer finished."""
64+
datetime_received: Optional[dt.datetime] = None # type: ignore
65+
"""The datetime the file was received."""
6666

6767
@validator("file_name")
6868
def _ensure_metadata_extension_removed(cls, filename): # pylint: disable=no-self-argument

0 commit comments

Comments
 (0)