Visitar URL original
Revert reading non-existent flag vectors from None to [] · MrBotDeveloper/pyrogram@527ec23 · GitHub
Skip to content

Commit 527ec23

Browse files
committed
Revert reading non-existent flag vectors from None to []
1 parent 14ae9d3 commit 527ec23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎compiler/api/compiler.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def start(format: bool = False):
447447
)
448448

449449
read_types += "\n "
450-
read_types += "{} = TLObject.read(b{}) if flags & (1 << {}) else None\n ".format(
450+
read_types += "{} = TLObject.read(b{}) if flags & (1 << {}) else []\n ".format(
451451
arg_name, f", {sub_type.title()}" if sub_type in CORE_TYPES else "", index
452452
)
453453
else:

0 commit comments

Comments
 (0)