Skip to content

Commit 3b54103

Browse files
committed
bugfix in schema_final (mappingproxy cannot reverse)
1 parent 4e557fe commit 3b54103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pcapkit/protocols/schema/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def schema_final(cls: 'ST', *, _finalised: 'bool' = True) -> 'ST':
7777

7878
# NOTE: We iterate in reversed order to ensure that the type
7979
# annotations of the superclasses are considered first.
80-
for key in reversed(cls_.__dict__):
80+
for key in reversed(cls_.__dict__.keys()):
8181
# NOTE: We skip duplicated annotations to avoid duplicate
8282
# argument in function definition.
8383
if key in args_:

0 commit comments

Comments
 (0)