Revert reading non-existent flag vectors from None to []

This commit is contained in:
Dan 2022-01-11 16:58:07 +01:00
parent 14ae9d314b
commit 527ec23c20

View File

@ -447,7 +447,7 @@ def start(format: bool = False):
) )
read_types += "\n " read_types += "\n "
read_types += "{} = TLObject.read(b{}) if flags & (1 << {}) else None\n ".format( read_types += "{} = TLObject.read(b{}) if flags & (1 << {}) else []\n ".format(
arg_name, f", {sub_type.title()}" if sub_type in CORE_TYPES else "", index arg_name, f", {sub_type.title()}" if sub_type in CORE_TYPES else "", index
) )
else: else: