Skip to content

Commit 373b651

Browse files
committed
minor bugfix in PCAPNG constructor func
1 parent 4b46cf5 commit 373b651

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pcapkit/protocols/misc/pcapng.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
Record = OrderedMultiDict[Enum_RecordType, Data_NameResolutionRecord]
198198

199199
BlockParser = Callable[[Schema_BlockType, NamedArg(Schema_PCAPNG, 'header')], Data_PCAPNG]
200-
BlockConstructor = Callable[[Enum_BlockType, DefaultArg(Optional[Data_PCAPNG]),
200+
BlockConstructor = Callable[[DefaultArg(Optional[Data_PCAPNG]),
201201
KwArg(Any)], Schema_BlockType]
202202

203203
OptionParser = Callable[[Schema_Option, NamedArg(Option, 'options')], Data_Option]
@@ -966,9 +966,9 @@ def make(self,
966966
meth = name[1]
967967

968968
if isinstance(block, dict):
969-
block_val = meth(type_val, **block)
969+
block_val = meth(**block)
970970
else:
971-
block_val = meth(type_val, block)
971+
block_val = meth(block)
972972
elif isinstance(block, Schema):
973973
block_val = block
974974
else:

0 commit comments

Comments
 (0)