-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Unexpected IndexError in typing.List[''] #116325
Labels
3.11
only security fixes
3.12
bugs and security fixes
3.13
bugs and security fixes
topic-typing
type-bug
An unexpected behavior, bug, or error
Comments
Eclips4
added
topic-typing
3.11
only security fixes
3.12
bugs and security fixes
3.13
bugs and security fixes
labels
Mar 4, 2024
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Mar 4, 2024
AlexWaygood
pushed a commit
that referenced
this issue
Mar 5, 2024
… with empty string arg (#116341)
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Mar 5, 2024
…ardRef with empty string arg (pythonGH-116341) (cherry picked from commit a29998a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Mar 5, 2024
…ardRef with empty string arg (pythonGH-116341) (cherry picked from commit a29998a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
adorilson
pushed a commit
to adorilson/cpython
that referenced
this issue
Mar 25, 2024
…ardRef with empty string arg (python#116341)
diegorusso
pushed a commit
to diegorusso/cpython
that referenced
this issue
Apr 17, 2024
…ardRef with empty string arg (python#116341)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.11
only security fixes
3.12
bugs and security fixes
3.13
bugs and security fixes
topic-typing
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
Calling
typing.List['']
produces an unexpectedIndexError
.The construct is invalid, but I'd expect a more friendly error, something similar to
CPython versions tested on:
3.11
Operating systems tested on:
Linux
Linked PRs
SyntaxError
on ForwardRef with empty string arg #116341SyntaxError
rather thanIndexError
on ForwardRef with empty string arg (GH-116341) #116347SyntaxError
rather thanIndexError
on ForwardRef with empty string arg (GH-116341) #116348The text was updated successfully, but these errors were encountered: