Skip to content

Make EventListener a dataclass instead of NamedTuple. #261

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

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link

Make EventListener a dataclass instead of NamedTuple.

There's no reason for this data type to behave like a tuple, and we only need
attribute access by name that's type-checked at compile time. Dataclasses are
more appropriate for this use-case.

@copybara-service copybara-service bot closed this Jan 29, 2025
@copybara-service copybara-service bot deleted the test_721038225 branch January 29, 2025 19:08
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.

0 participants