Skip to content

Small simplifications to the events class#19680

Merged
erikjohnston merged 3 commits into
developfrom
erikj/simplify_events2
Apr 13, 2026
Merged

Small simplifications to the events class#19680
erikjohnston merged 3 commits into
developfrom
erikj/simplify_events2

Conversation

@erikjohnston
Copy link
Copy Markdown
Member

This is to make it easier to port to Rust, as well as making things conceptually simpler.

Two changes:

  1. Remove the __getitem__ interface on events
  2. Remove .user_id as an alias of .sender.

It was just an alternate name for `sender`.
@erikjohnston erikjohnston force-pushed the erikj/simplify_events2 branch from 5f5f54f to 486b874 Compare April 13, 2026 10:53
@erikjohnston erikjohnston marked this pull request as ready for review April 13, 2026 12:11
@erikjohnston erikjohnston requested a review from a team as a code owner April 13, 2026 12:11
@erikjohnston erikjohnston merged commit 8c1ac41 into develop Apr 13, 2026
79 of 81 checks passed
@erikjohnston erikjohnston deleted the erikj/simplify_events2 branch April 13, 2026 16:52
erikjohnston added a commit that referenced this pull request Apr 22, 2026
Both `__getitem__` and `.user_id` were removed in #19680 to simplify the
event class. However, `EventBase` is exposed to modules who might also
make use of those methods, so let's reinstate them (but otherwise not
reinstate the usage of them in the code).
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.

2 participants