Skip to content

Commit 1affb75

Browse files
committed
Improve typing slightly
1 parent 24dae9d commit 1affb75

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

scapy/layers/l2.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -895,14 +895,14 @@ def arpcachepoison(
895895

896896
@conf.commands.register
897897
def arp_mitm(
898-
ip1, # type: str
899-
ip2, # type: str
898+
ip1: str,
899+
ip2: str,
900900
mac1=None, # type: Optional[Union[str, List[str]]]
901901
mac2=None, # type: Optional[Union[str, List[str]]]
902-
broadcast=False, # type: bool
903-
target_mac=None, # type: Optional[str]
904-
iface=None, # type: Optional[_GlobInterfaceType]
905-
inter=3, # type: int
902+
broadcast: bool = False,
903+
target_mac: Optional[str] = None,
904+
iface: str = None,
905+
inter: int = 3,
906906
):
907907
# type: (...) -> None
908908
r"""ARP MitM: poison 2 target's ARP cache

scapy/layers/smbclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ def __init__(
11261126
guest: bool = False,
11271127
kerberos: bool = True,
11281128
kerberos_required: bool = False,
1129-
HashNt: str = None,
1129+
HashNt: bytes = None,
11301130
port: int = 445,
11311131
timeout: int = 2,
11321132
debug: int = 0,

0 commit comments

Comments
 (0)