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

Dataclasses refactor and add new to_dict function #221

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

azgabur
Copy link
Contributor

@azgabur azgabur commented Jul 25, 2023

This PR includes:

  • Refactor of Value class to three dataclasses removing redundant test of exclusivity.
  • Replacing usage of dataclasses.asdict() and direct object.to_dict() method calls in favor of new to_dict() function

@azgabur azgabur force-pushed the dataclasses_refactor branch 5 times, most recently from 8bb95a6 to 235667d Compare July 25, 2023 23:26
testsuite/objects/__init__.py Outdated Show resolved Hide resolved
testsuite/objects/__init__.py Outdated Show resolved Hide resolved
testsuite/objects/__init__.py Outdated Show resolved Hide resolved
testsuite/objects/__init__.py Outdated Show resolved Hide resolved
testsuite/objects/__init__.py Outdated Show resolved Hide resolved
testsuite/objects/__init__.py Outdated Show resolved Hide resolved
testsuite/objects/__init__.py Outdated Show resolved Hide resolved
testsuite/objects/__init__.py Show resolved Hide resolved
testsuite/objects/__init__.py Outdated Show resolved Hide resolved
@azgabur azgabur force-pushed the dataclasses_refactor branch 4 times, most recently from 9d6ddab to 26b0e02 Compare July 31, 2023 13:38
pehala
pehala previously approved these changes Jul 31, 2023
@pehala pehala merged commit 849cdcd into Kuadrant:main Aug 1, 2023
1 check passed
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.

4 participants