Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add remaining type hints to synapse.events. #11098

Merged
merged 20 commits into from
Nov 2, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions synapse/events/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ def get_templated_pdu_json(self) -> JsonDict:

return template_json

def __set__(self, instance: Any, value: Any) -> None:
raise AttributeError("Unrecognized attribute %s" % (instance,))
def __setattr__(self, key: str, value: Any) -> None:
raise AttributeError("Unrecognized attribute %s" % (key,))
clokep marked this conversation as resolved.
Show resolved Hide resolved

def __getitem__(self, field: str) -> Optional[Any]:
return self._dict[field]
Expand Down