-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Assigning attributes to typing.NoDefault
raises TypeError
, but should raise AttributeError
#118895
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
topic-typing
type-bug
An unexpected behavior, bug, or error
Comments
AlexWaygood
added
type-bug
An unexpected behavior, bug, or error
topic-typing
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
labels
May 10, 2024
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
May 10, 2024
JelleZijlstra
added a commit
that referenced
this issue
May 10, 2024
JelleZijlstra
added a commit
that referenced
this issue
May 10, 2024
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
topic-typing
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
Most sentinels in Python raise
AttributeError
if you try to assign attributes to them, buttyping.NoDefault
raisesTypeError
instead. I think this should beAttributeError
, for consistency with other similar objects:CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
The text was updated successfully, but these errors were encountered: