Skip to content

Commit d33c7b4

Browse files
gnoughtgpotter2
authored andcommitted
update type of default param in LEFieldLenField
The `default` type should be same as its parent `FieldLenField`
1 parent e80b3d4 commit d33c7b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scapy/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2894,7 +2894,7 @@ class LEFieldLenField(FieldLenField):
28942894
def __init__(
28952895
self,
28962896
name, # type: str
2897-
default, # type: int
2897+
default, # type: Optional[Any]
28982898
length_of=None, # type: Optional[str]
28992899
fmt="<H", # type: str
29002900
count_of=None, # type: Optional[str]

0 commit comments

Comments
 (0)