diff --git a/tap_mongodb/types.py b/tap_mongodb/types.py index 115cf6a..491dcc5 100644 --- a/tap_mongodb/types.py +++ b/tap_mongodb/types.py @@ -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"])