You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When __init__ is called for a class which 1) is annotated with @dataclasses.dataclass(frozen=True) and 2) has a attribute named object a TypeError is raised because object is overridden for the local scope and as a result __setattr__ is called on the passed in argument value instead of the standard object base type.
New changeset 4d12e4d by Eric V. Smith (Vadim Pushtaev) in branch 'master': bpo-34213: Allow dataclasses to work with a field named 'object'. (GH-8452) 4d12e4d
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: