Skip to content

Commit a4c77f0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent f0b3f3c commit a4c77f0

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

stdlib/re.pyi

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,30 @@ def match(pattern: AnyStr | Pattern[AnyStr], string: AnyStr, flags: _FlagsType =
5757

5858
# New in Python 3.4
5959
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]: ...
6163
def findall(pattern: AnyStr | Pattern[AnyStr], string: AnyStr, flags: _FlagsType = ...) -> list[Any]: ...
6264

6365
# Return an iterator yielding match objects over all non-overlapping matches
6466
# for the RE pattern in string. The string is scanned left-to-right, and
6567
# matches are returned in the order found. Empty matches are included in the
6668
# result unless they touch the beginning of another match.
6769
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]: ...
7184
def escape(pattern: AnyStr) -> AnyStr: ...
7285
def purge() -> None: ...
7386
def template(pattern: AnyStr | Pattern[AnyStr], flags: _FlagsType = ...) -> Pattern[AnyStr]: ...

0 commit comments

Comments
 (0)