Skip to content

Conversation

@itamaro
Copy link

@itamaro itamaro commented Feb 9, 2026

Summary: Python 3.12 strictly enforces that dataclass fields with mutable defaults (including other dataclass instances) must use field(default_factory=...) instead of direct assignment. Changed the ApplicationClockInfo default to use a lambda factory.

Differential Revision: D92669096

@meta-codesync
Copy link

meta-codesync bot commented Feb 9, 2026

@itamaro has exported this pull request. If you are a Meta employee, you can view the originating Diff in D92669096.

itamaro added a commit to itamaro/gcm that referenced this pull request Feb 10, 2026
Summary:

Python 3.12 strictly enforces that dataclass fields with mutable defaults (including other dataclass instances) must use field(default_factory=...) instead of direct assignment. Changed the ApplicationClockInfo default to use a lambda factory.

Reviewed By: drinkmorewaterr

Differential Revision: D92669096
Summary:

Python 3.12 strictly enforces that dataclass fields with mutable defaults (including other dataclass instances) must use field(default_factory=...) instead of direct assignment. Changed the ApplicationClockInfo default to use a lambda factory.

Reviewed By: drinkmorewaterr

Differential Revision: D92669096
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant