Move class docstrings out of init function.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user