Skip to content

Commit a336ccb

Browse files
KhemkaranKhemkaran
authored andcommitted
added type annotation and minor docstring changes
1 parent 52b9123 commit a336ccb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pandas/core/arrays/_arrow_string_mixins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def _str_contains(
304304

305305
def _str_match(
306306
self,
307-
pat,
307+
pat: str | re.Pattern,
308308
case: bool = True,
309309
flags: int = 0,
310310
na: Scalar | lib.NoDefault = lib.no_default,

pandas/core/strings/accessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ def match(self, pat: str, case: bool = True, flags: int = 0, na=lib.no_default):
13611361
13621362
Parameters
13631363
----------
1364-
pat : str
1364+
pat : str or compiled regex
13651365
Character sequence or regular expression.
13661366
case : bool, default True
13671367
If True, case sensitive.

pandas/core/strings/object_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def rep(x, r):
248248

249249
def _str_match(
250250
self,
251-
pat,
251+
pat: str | re.Pattern,
252252
case: bool = True,
253253
flags: int = 0,
254254
na: Scalar | lib.NoDefault = lib.no_default,

0 commit comments

Comments
 (0)