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

Commit

Permalink
Proper types for __delete__.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Oct 19, 2021
1 parent 0a01691 commit 029953a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synapse/events/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def __set__(
) -> None:
instance._dict[self.key] = v

def __delete__(self, instance: Any) -> None:
def __delete__(
self, instance: Union["_EventInternalMetadata", "EventBase"]
) -> None:
try:
del instance._dict[self.key]
except KeyError as e1:
Expand Down

0 comments on commit 029953a

Please sign in to comment.