diff --git a/stubs/assertpy/assertpy/string.pyi b/stubs/assertpy/assertpy/string.pyi index c7e978309..4b6c6717c 100644 --- a/stubs/assertpy/assertpy/string.pyi +++ b/stubs/assertpy/assertpy/string.pyi @@ -1,4 +1,3 @@ -from re import Pattern from typing_extensions import Self unicode = str @@ -9,8 +8,8 @@ class StringMixin: def contains_ignoring_case(self, *items: str) -> Self: ... def starts_with(self, prefix: str) -> Self: ... def ends_with(self, suffix: str) -> Self: ... - def matches(self, pattern: Pattern[str]) -> Self: ... - def does_not_match(self, pattern: Pattern[str]) -> Self: ... + def matches(self, pattern: str) -> Self: ... + def does_not_match(self, pattern: str) -> Self: ... def is_alpha(self) -> Self: ... def is_digit(self) -> Self: ... def is_lower(self) -> Self: ...