Skip to content

Commit 38a08fc

Browse files
authored
List returned from re.split() can contain Nones (#6763)
1 parent fbf5982 commit 38a08fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/typing.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ class Pattern(Generic[AnyStr]):
622622
def search(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Match[AnyStr] | None: ...
623623
def match(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Match[AnyStr] | None: ...
624624
def fullmatch(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Match[AnyStr] | None: ...
625-
def split(self, string: AnyStr, maxsplit: int = ...) -> list[AnyStr]: ...
625+
def split(self, string: AnyStr, maxsplit: int = ...) -> list[AnyStr | Any]: ...
626626
def findall(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> list[Any]: ...
627627
def finditer(self, string: AnyStr, pos: int = ..., endpos: int = ...) -> Iterator[Match[AnyStr]]: ...
628628
@overload

0 commit comments

Comments
 (0)