Skip to content

Commit 37fb400

Browse files
committed
REFACT: Fix docs/types issues
1 parent f8bc1fd commit 37fb400

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scapy/fields.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ def __init__(self, name, default):
850850
Field.__init__(self, name, default, "4s")
851851

852852
def _concat_ip(self, ip_string):
853+
# type: (str) -> bytes
853854
"""Concat a IP str of form IP,IP,IP and returns it as bytes
854855
Backcompatible if IP is a single IP.
855856
:param ip_string: String of the IP to be packed"""
@@ -866,7 +867,7 @@ def _concat_ip(self, ip_string):
866867
# Concatenate packed IPs into a single byte string
867868
return b''.join(packed_ips)
868869

869-
def h2i(self, pkt, x, multiple=False):
870+
def h2i(self, pkt, x):
870871
# type: (Optional[Packet], Union[AnyStr, List[AnyStr]]) -> Any
871872
if isinstance(x, bytes):
872873
x = plain_str(x) # type: ignore

0 commit comments

Comments
 (0)