Merge pull request #766 from LonamiWebs/tidygenerator

Tidy up the telethon-generator package
This commit is contained in:
Lonami
2018-04-15 13:21:26 +02:00
committed by GitHub
31 changed files with 1475 additions and 1582 deletions

View File

@@ -12,6 +12,7 @@ from .common import (
)
# This imports the base errors too, as they're imported there
from .rpc_base_errors import *
from .rpc_error_list import *

View File

@@ -189,6 +189,6 @@ class TLObject:
def __bytes__(self):
return b''
@staticmethod
def from_reader(reader):
@classmethod
def from_reader(cls, reader):
return TLObject()