Update assertpy/string.pyi to correct type of pattern arg (#12235)

The methods requires the pattern arg to be of type str, not Pattern.

Signed-off-by: BJ Hargrave <bj@hargrave.dev>
This commit is contained in:
BJ Hargrave
2024-07-11 20:16:10 -04:00
committed by GitHub
parent ed34247cfa
commit f6eb38bddd

View File

@@ -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: ...