Use classmethod for all Event.build

This commit is contained in:
Lonami Exo
2018-07-19 01:47:32 +02:00
parent 2d7c8908eb
commit 7f78d7ed2f
10 changed files with 79 additions and 79 deletions

View File

@@ -59,9 +59,9 @@ class EventBuilder(abc.ABC):
self.blacklist_chats = blacklist_chats
self._self_id = None
@staticmethod
@classmethod
@abc.abstractmethod
def build(update):
def build(cls, update):
"""Builds an event for the given update if possible, or returns None"""
async def resolve(self, client):