Skip to content

refactor!: make dataclass back into standard state#62

Merged
hollandjg merged 8 commits intomainfrom
chore/set-state-dataclass-as-default
Dec 1, 2023
Merged

refactor!: make dataclass back into standard state#62
hollandjg merged 8 commits intomainfrom
chore/set-state-dataclass-as-default

Conversation

@hollandjg
Copy link
Copy Markdown
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
Copy Markdown

@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
Copy Markdown
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
@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