Skip to content

Commit

Permalink
[base_update] mark .from_update as abstract classmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
david-lev committed Oct 26, 2023
1 parent 64ed412 commit dd90e86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pywa/types/base_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ def id(self) -> str:
def timestamp(self) -> dt.datetime:
...

@classmethod
@abc.abstractmethod
def from_update(self, client: WhatsApp, update: dict) -> BaseUpdate:
def from_update(cls, client: WhatsApp, update: dict) -> BaseUpdate:
...

def stop_handling(self) -> None:
Expand Down

0 comments on commit dd90e86

Please sign in to comment.