Skip to content

Commit

Permalink
Remove generics from functions
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Dec 11, 2024
1 parent 6e51b5c commit 60dfd20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reportportal_client/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def to_bool(value: Optional[Any]) -> Optional[bool]:
raise ValueError(f'Invalid boolean value {value}.')


def translate_glob_to_regex(pattern: Optional[str]) -> Optional[re.Pattern[str]]:
def translate_glob_to_regex(pattern: Optional[str]) -> Optional[re.Pattern]:
"""Translate glob string pattern to regex Pattern.
:param pattern: glob pattern
Expand All @@ -504,7 +504,7 @@ def translate_glob_to_regex(pattern: Optional[str]) -> Optional[re.Pattern[str]]
return re.compile(fnmatch.translate(pattern))


def match_pattern(pattern: Optional[re.Pattern[str]], line: Optional[str]) -> bool:
def match_pattern(pattern: Optional[re.Pattern], line: Optional[str]) -> bool:
"""Check if the line matches given glob pattern.
:param pattern: glob pattern
Expand Down

0 comments on commit 60dfd20

Please sign in to comment.