Fix builtins.TypeError: unsupported operand type(s) for |: 'str' and 'NoneType'

This commit is contained in:
Eric Eastwood
2026-07-28 18:11:26 -05:00
parent 19d8a7a6e9
commit ecab104977
+1 -1
View File
@@ -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`.