From 7f78e52bf236fe1d23ef6ec18f47784382a69430 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Wed, 27 Jul 2022 15:55:35 +0530 Subject: [PATCH] Common: Add docstring to TCPScanConfiguration dataclass --- .../agent_configuration/agent_sub_configurations.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/monkey/common/agent_configuration/agent_sub_configurations.py b/monkey/common/agent_configuration/agent_sub_configurations.py index 188b9d1bb..1d3b5854e 100644 --- a/monkey/common/agent_configuration/agent_sub_configurations.py +++ b/monkey/common/agent_configuration/agent_sub_configurations.py @@ -46,6 +46,14 @@ class ICMPScanConfiguration: @dataclass(frozen=True) class TCPScanConfiguration: + """ + A configuration for TCP scanning + + Attributes: + :param timeout: Maximum time to wait for a response from the target + :param ports: Ports to scan + """ + timeout: float ports: Tuple[int, ...]