Skip to content

Commit

Permalink
fix mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mozman committed Oct 15, 2024
1 parent 50f7d26 commit 54d95dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ezdxf/recover.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ def _search_int(s: Union[str, bytes]) -> int:
an exception. e.g. "42xyz" is a valid integer 42
"""
res = re.search( # type: ignore
INT_PATTERN_S if isinstance(s, str) else INT_PATTERN_B, s
res = re.search(
INT_PATTERN_S if isinstance(s, str) else INT_PATTERN_B, s # type: ignore
)
if res:
s = res.group()
Expand All @@ -556,8 +556,8 @@ def _search_float(s: Union[str, bytes]) -> float:
an exception. e.g. "47.11xyz" is a valid double 47.11
"""
res = re.search( # type: ignore
FLOAT_PATTERN_S if isinstance(s, str) else FLOAT_PATTERN_B, s
res = re.search(
FLOAT_PATTERN_S if isinstance(s, str) else FLOAT_PATTERN_B, s # type: ignore
)
if res:
s = res.group()
Expand Down

0 comments on commit 54d95dd

Please sign in to comment.