update deserialize arg ordering in container type

This commit is contained in:
Danny Ryan 2018-11-05 14:04:40 +01:00 committed by GitHub
parent 7ad16d4282
commit 1d817608fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ item_index = current_index + LENGTH_BYTES
values = {} values = {}
for field_name in sorted(get_field_names(typ)): for field_name in sorted(get_field_names(typ)):
field_name_type = get_type_for_field_name(typ, field_name) field_name_type = get_type_for_field_name(typ, field_name)
values[field_name], item_index = deserialize_at(data, field_name_type, item_index) values[field_name], item_index = deserialize(data, item_index, field_name_type)
assert item_index == start + LENGTH_BYTES + length assert item_index == start + LENGTH_BYTES + length
return typ(**values), item_index return typ(**values), item_index
``` ```