@@ -57,17 +57,30 @@ def match(pattern: AnyStr | Pattern[AnyStr], string: AnyStr, flags: _FlagsType =
57
57
58
58
# New in Python 3.4
59
59
def fullmatch (pattern : AnyStr | Pattern [AnyStr ], string : AnyStr , flags : _FlagsType = ...) -> Match [AnyStr ] | None : ...
60
- def split (pattern : AnyStr | Pattern [AnyStr ], string : AnyStr , maxsplit : int = ..., flags : _FlagsType = ...) -> list [AnyStr | Any ]: ...
60
+ def split (
61
+ pattern : AnyStr | Pattern [AnyStr ], string : AnyStr , maxsplit : int = ..., flags : _FlagsType = ...
62
+ ) -> list [AnyStr | Any ]: ...
61
63
def findall (pattern : AnyStr | Pattern [AnyStr ], string : AnyStr , flags : _FlagsType = ...) -> list [Any ]: ...
62
64
63
65
# Return an iterator yielding match objects over all non-overlapping matches
64
66
# for the RE pattern in string. The string is scanned left-to-right, and
65
67
# matches are returned in the order found. Empty matches are included in the
66
68
# result unless they touch the beginning of another match.
67
69
def finditer (pattern : AnyStr | Pattern [AnyStr ], string : AnyStr , flags : _FlagsType = ...) -> Iterator [Match [AnyStr ]]: ...
68
- def sub (pattern : AnyStr | Pattern [AnyStr ], repl : AnyStr | Callable [[Match [AnyStr ]], AnyStr ], string : AnyStr , count : int = ..., flags : _FlagsType = ...) -> AnyStr : ...
69
- def subn (pattern : AnyStr | Pattern [AnyStr ], repl : AnyStr | Callable [[Match [AnyStr ]], AnyStr ], string : AnyStr , count : int = ..., flags : _FlagsType = ...) -> tuple [AnyStr , int ]: ...
70
-
70
+ def sub (
71
+ pattern : AnyStr | Pattern [AnyStr ],
72
+ repl : AnyStr | Callable [[Match [AnyStr ]], AnyStr ],
73
+ string : AnyStr ,
74
+ count : int = ...,
75
+ flags : _FlagsType = ...,
76
+ ) -> AnyStr : ...
77
+ def subn (
78
+ pattern : AnyStr | Pattern [AnyStr ],
79
+ repl : AnyStr | Callable [[Match [AnyStr ]], AnyStr ],
80
+ string : AnyStr ,
81
+ count : int = ...,
82
+ flags : _FlagsType = ...,
83
+ ) -> tuple [AnyStr , int ]: ...
71
84
def escape (pattern : AnyStr ) -> AnyStr : ...
72
85
def purge () -> None : ...
73
86
def template (pattern : AnyStr | Pattern [AnyStr ], flags : _FlagsType = ...) -> Pattern [AnyStr ]: ...
0 commit comments