Agent: Fix mypy issues in smb_tools.py

This commit is contained in:
Kekoa Kaaikala 2022-10-07 13:26:49 +00:00
parent bc0adb2193
commit 104e0abda9
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import ntpath
import pprint
from io import BytesIO
from pathlib import PurePath
from typing import Optional
from typing import Any, Dict, Optional, Tuple
from impacket.dcerpc.v5 import srvs, transport
from impacket.smb3structs import SMB2_DIALECT_002, SMB2_DIALECT_21
@ -79,8 +79,8 @@ class SmbTools(object):
resp = resp["InfoStruct"]["ShareInfo"]["Level2"]["Buffer"]
high_priority_shares = ()
low_priority_shares = ()
high_priority_shares: Tuple[Tuple[str, Dict[str, Any]], ...] = ()
low_priority_shares: Tuple[Tuple[str, Dict[str, Any]], ...] = ()
file_name = dst_path.name
for i in range(len(resp)):