Fix-up missing parenthesis from 066004a

This commit is contained in:
Lonami Exo 2018-07-07 13:03:46 +02:00
parent 066004acd1
commit 61f9dc1cd7

View File

@ -239,7 +239,7 @@ def _write_class_init(tlobject, kind, type_constructors, builder):
def _write_resolve(tlobject, builder):
if tlobject.is_function and any(
(arg.type in AUTO_CASTS
or (arg.name, arg.type in NAMED_AUTO_CASTS))
or ((arg.name, arg.type) in NAMED_AUTO_CASTS))
for arg in tlobject.real_args
):
builder.writeln('async def resolve(self, client, utils):')