From 56b7de210ec24aa98f90d24d9d6eacbcae9415f4 Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Thu, 2 Jul 2026 22:27:18 +0300 Subject: [PATCH] Correctly type `ProfileUpdatesStreamRow.field_name` --- synapse/replication/tcp/streams/_base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/synapse/replication/tcp/streams/_base.py b/synapse/replication/tcp/streams/_base.py index 4f16b25b54..86242b2341 100644 --- a/synapse/replication/tcp/streams/_base.py +++ b/synapse/replication/tcp/streams/_base.py @@ -776,8 +776,10 @@ class ProfileUpdatesStreamRow: """The action, either 'update' for a field update, 'left_room' if the user left a room or `joined_room` if the user joined a room, see ProfileUpdateAction constant. """ - field_name: str - """The profile field that was updated, see https://spec.matrix.org/unstable/client-server-api/#profiles """ + field_name: str | None + """The profile field that was updated, see https://spec.matrix.org/unstable/client-server-api/#profiles. + This can be None if `action` is not 'update'. + """ class ProfileUpdatesStream(_StreamFromIdGen):