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

refactor!: make dataclass back into standard state #62

Merged
merged 8 commits into from
Dec 1, 2023

Conversation

hollandjg
Copy link
Member

@hollandjg hollandjg commented Nov 30, 2023

Description

Revert State to be defined as a Dataclass rather than a userdict.

Type of change

  • refactor: A code change that neither fixes a bug nor adds a feature

If this is a breaking change (which might apply to any of the other kinds of change), note that below, otherwise delete
this section:

Features (Optional)

  • Remove StateDict and StandardStateDict
  • Rename State from StateDataClass
  • Rename StandardState from StandardStateDataClass

@hollandjg hollandjg added bug Something isn't working. priority 0 - emergency These can be blockers, or security issues, and should be resolved immediately. labels Nov 30, 2023
@hollandjg hollandjg self-assigned this Nov 30, 2023
@hollandjg hollandjg changed the title refactor: make dataclass back into standard state refactor!: make dataclass back into standard state Nov 30, 2023
@hollandjg hollandjg changed the base branch from main to feat/reintegrate-workflow November 30, 2023 20:45
Copy link
Contributor

@younesStrittmatter younesStrittmatter left a comment

Choose a reason for hiding this comment

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

I thought we would just make the aliases State = StateDataclass and StandardState = StandardStateDataclass, but I am happy with this too. If we need the Dict along the line, we can still use the implementations from previous commits and shouldn't make things more complicated than necessary by having two implementations.

Copy link
Contributor

@benwandrew benwandrew left a comment

Choose a reason for hiding this comment

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

so far as i can tell, looks like you caught everything

Base automatically changed from feat/reintegrate-workflow to main December 1, 2023 21:38
@hollandjg hollandjg added this pull request to the merge queue Dec 1, 2023
Merged via the queue into main with commit c5b12a7 Dec 1, 2023
16 checks passed
@hollandjg hollandjg deleted the chore/set-state-dataclass-as-default branch December 1, 2023 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. priority 0 - emergency These can be blockers, or security issues, and should be resolved immediately.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revert StandardState to DataClass
3 participants