Move class docstrings out of init function.

This commit is contained in:
Marek Wolan
2023-07-05 10:14:16 +01:00
parent 24a4f96ed0
commit fa6dbd8338
12 changed files with 105 additions and 123 deletions

View File

@@ -3,14 +3,12 @@
class Protocol(object):
"""Protocol class."""
"""Protocol class.
:param _name: The protocol name
"""
def __init__(self, _name):
"""Init.
Args:
_name: The protocol name
"""
self.name = _name
self.load = 0 # bps

View File

@@ -5,15 +5,14 @@ from primaite.common.enums import SoftwareState
class Service(object):
"""Service class."""
"""Service class.
:param name: The service name.
:param port: The service port.
:param software_state: The service SoftwareState.
"""
def __init__(self, name: str, port: str, software_state: SoftwareState):
"""Init.
:param name: The service name.
:param port: The service port.
:param software_state: The service SoftwareState.
"""
self.name = name
self.port = port
self.software_state = software_state