Skip to content
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: DataclassInstance and AttrInstance protocols #108

Merged
merged 4 commits into from
May 23, 2024
Merged

Conversation

msto
Copy link
Contributor

@msto msto commented May 6, 2024

This PR includes two minor QoL fixes

  • I found the aliased import of DataclassInstance to DataclassesProtocol unnecessary, especially since it conflicted with the naming convention of AttrInstance
  • I updated the *Instance definitions to reflect the canonical definitions for each. (In particular, the implementation for AttrInstance was bugged since __attrs_attrs__ can be a tuple of attributes, not a dict)

@msto msto force-pushed the ms_dataclass-instance branch from f5b36d2 to 878b65e Compare May 6, 2024 10:00
@msto msto force-pushed the ms_dataclass-instance branch from 61c80cf to efa55db Compare May 6, 2024 10:04
@msto msto requested review from nh13, tfenne, clintval and TedBrookings May 6, 2024 11:29
Copy link
Contributor

@TedBrookings TedBrookings left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Good catch on the __attrs_attrs__ definition.

Copy link
Member

@nh13 nh13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank-you! LGTM

@msto msto merged commit 8738a1d into main May 23, 2024
6 checks passed
@msto msto deleted the ms_dataclass-instance branch May 23, 2024 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants