Skip to content

Commit

Permalink
Mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Sep 10, 2024
1 parent bcb3c1f commit b358a3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ert/shared/storage/key_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def identify_var_type(key: str) -> SummaryVarType:
return SummaryVarType.RD_SMSPEC_MISC_VAR


def match_keyword_vector(start, rate_vars, keyword):
def match_keyword_vector(start, rate_vars, keyword) -> bool:

Check failure on line 166 in src/ert/shared/storage/key_utils.py

View workflow job for this annotation

GitHub Actions / type-checking (3.12)

Function is missing a type annotation for one or more arguments
"""
Check if 'keyword' matches any item in 'rate_vars' starting from
index 'start' onwards.
Expand All @@ -173,7 +173,7 @@ def match_keyword_vector(start, rate_vars, keyword):
return any(suffix.startswith(var) for var in rate_vars)


def match_keyword_string(start, rate_string, keyword):
def match_keyword_string(start, rate_string, keyword) -> bool:

Check failure on line 176 in src/ert/shared/storage/key_utils.py

View workflow job for this annotation

GitHub Actions / type-checking (3.12)

Function is missing a type annotation for one or more arguments
"""
Check if 'keyword' matches 'rate_string' starting from index 'start'.
"""
Expand Down

0 comments on commit b358a3b

Please sign in to comment.