Fix-up merge missing async keyword

This commit is contained in:
Lonami Exo 2018-04-15 16:11:16 +02:00
parent b7ae612246
commit 8260a13824

View File

@ -232,7 +232,7 @@ def _write_class_init(tlobject, type_constructors, builder):
def _write_resolve(tlobject, builder):
if any(arg.type in AUTO_CASTS for arg in tlobject.real_args):
builder.writeln('def resolve(self, client, utils):')
builder.writeln('async def resolve(self, client, utils):')
for arg in tlobject.real_args:
ac = AUTO_CASTS.get(arg.type, None)
if not ac: