-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
re.split
has seemingly unnecessary Any
s
#7940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
They're there because the list entries can be None:
Though this behavior doesn't appear to be documented: https://docs.python.org/3.10/library/re.html#re.split |
Huh, alright then. Strange that it isn't documented. |
Actually, would it be a bad idea to replace the |
Having It would be good to add a comment explaining the |
I would think that the
| Any
s in the following four return types should be removed.typeshed/stdlib/typing.pyi
Line 1144 in 54e11a1
typeshed/stdlib/typing.pyi
Line 1146 in 54e11a1
typeshed/stdlib/re.pyi
Line 184 in 54e11a1
typeshed/stdlib/re.pyi
Line 188 in 54e11a1
The text was updated successfully, but these errors were encountered: