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
Fix punctuation in isinstance() error message #88806
Labels
3.9
only security fixes
3.10
only security fixes
3.11
only security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Comments
>>> isinstance(2, 1)
Traceback (most recent call last):
...
TypeError: isinstance() arg 2 must be a type, a tuple of types or a union
>>> issubclass(int, 1)
Traceback (most recent call last):
..
TypeError: issubclass() arg 2 must be a class, a tuple of classes, or a union.
|
wyz23x2
mannequin
added
3.9
only security fixes
3.10
only security fixes
3.11
only security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
labels
Jul 14, 2021
The current string is correct. The word "union" is actually an exception to the "a/an" rule. Here is more detail: https://english.stackexchange.com/questions/266309/why-is-union-an-exception-to-the-a-an-rule |
Changed to only 2). |
wyz23x2
mannequin
changed the title
Typos in error messages of isinstance() & issubclass()
Fix punctuation in isinstance() error message
Jul 16, 2021
wyz23x2
mannequin
changed the title
Typos in error messages of isinstance() & issubclass()
Fix punctuation in isinstance() error message
Jul 16, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.9
only security fixes
3.10
only security fixes
3.11
only security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: