Skip to content

Commit

Permalink
rm generic reference to re.match
Browse files Browse the repository at this point in the history
  • Loading branch information
menzenski committed Feb 16, 2024
1 parent 83fa85e commit f2ac545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap_mongodb/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __str__(self) -> str:
@classmethod
def from_string(cls, id_string: str) -> Self:
"""Create an IncrementalId instance from a string."""
matched: Optional[re.Match[str]] = re.match(IncrementalId.PATTERN, id_string)
matched: Optional[re.Match] = re.match(IncrementalId.PATTERN, id_string)
if not matched:
raise ValueError("Invalid IncrementalId string")
datetime_part = datetime.fromisoformat(matched["dt"])
Expand Down

0 comments on commit f2ac545

Please sign in to comment.