Correctly type ProfileUpdatesStreamRow.field_name

This commit is contained in:
Jason Robinson
2026-07-02 22:27:18 +03:00
parent 868513720f
commit 56b7de210e
+4 -2
View File
@@ -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):