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

🐛 Make EncodedStr a dataclass #7396

Merged
merged 5 commits into from Sep 20, 2023
Merged

🐛 Make EncodedStr a dataclass #7396

merged 5 commits into from Sep 20, 2023

Conversation

Kludex
Copy link
Member

@Kludex Kludex commented Sep 11, 2023

Selected Reviewer: @davidhewitt

@Kludex Kludex requested a review from lig September 11, 2023 09:27
@cloudflare-pages
Copy link

cloudflare-pages bot commented Sep 11, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: d3d862f
Status: ✅  Deploy successful!
Preview URL: https://03fbf76b.pydantic-docs2.pages.dev
Branch Preview URL: https://make-encodedstr-dataclass.pydantic-docs2.pages.dev

View logs

@Kludex
Copy link
Member Author

Kludex commented Sep 11, 2023

please review

@@ -1517,6 +1517,7 @@ def __hash__(self) -> int:
return hash(self.encoder)


@_dataclasses.dataclass()
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we make it a slots dataclass like EncodeBytes?

Suggested change
@_dataclasses.dataclass()
@_dataclasses.dataclass(**_internal_dataclass.slots_true)

Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
@Kludex
Copy link
Member Author

Kludex commented Sep 20, 2023

The pipeline is going to fail.

@adriangb adriangb enabled auto-merge (squash) September 20, 2023 09:29
@Kludex
Copy link
Member Author

Kludex commented Sep 20, 2023

@adriangb adriangb merged commit 3b297ad into main Sep 20, 2023
48 checks passed
@adriangb adriangb deleted the make-EncodedStr-dataclass branch September 20, 2023 09:44
@davidhewitt davidhewitt added the relnotes-change Used for changes to existing functionality which don't have a better categorization. label Sep 21, 2023
@Viicos Viicos mentioned this pull request Mar 21, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review relnotes-change Used for changes to existing functionality which don't have a better categorization.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants