mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-14 11:30:49 +00:00
Fix builtins.TypeError: unsupported operand type(s) for |: 'str' and 'NoneType'
This commit is contained in:
@@ -213,7 +213,7 @@ class StrippedStateEvent:
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
def from_json_dict(raw_stripped_event: JsonDict) -> "StrippedStateEvent" | None:
|
||||
def from_json_dict(raw_stripped_event: JsonDict) -> "StrippedStateEvent | None":
|
||||
"""
|
||||
Given a raw value from an event's `unsigned` field, attempt to parse it into a
|
||||
`StrippedStateEvent`.
|
||||
|
||||
Reference in New Issue
Block a user