Skip to content

Commit

Permalink
type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
diitaz93 committed Jan 21, 2025
1 parent 9052662 commit 0f3c890
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MutantSample(Sample):

@model_validator(mode="before")
@classmethod
def set_original_lab_address(cls, data: any):
def set_original_lab_address(cls, data: any) -> any:
if isinstance(data, dict):
is_set = bool(data.get("original_lab_address"))
if not is_set:
Expand All @@ -48,7 +48,7 @@ def set_original_lab_address(cls, data: any):

@model_validator(mode="before")
@classmethod
def set_region_code(cls, data: any):
def set_region_code(cls, data: any) -> any:
if isinstance(data, dict):
is_set = bool(data.get("region_code"))
if not is_set:
Expand Down

0 comments on commit 0f3c890

Please sign in to comment.