mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
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:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user