Format docstrings

This commit is contained in:
Marek Wolan
2023-07-04 11:11:52 +01:00
parent 3de6208915
commit 5e270c7673
39 changed files with 208 additions and 409 deletions

View File

@@ -6,8 +6,7 @@ class Protocol(object):
"""Protocol class."""
def __init__(self, _name):
"""
Init.
"""Init.
Args:
_name: The protocol name
@@ -16,8 +15,7 @@ class Protocol(object):
self.load = 0 # bps
def get_name(self):
"""
Gets the protocol name.
"""Gets the protocol name.
Returns:
The protocol name
@@ -25,8 +23,7 @@ class Protocol(object):
return self.name
def get_load(self):
"""
Gets the protocol load.
"""Gets the protocol load.
Returns:
The protocol load (bps)
@@ -34,8 +31,7 @@ class Protocol(object):
return self.load
def add_load(self, _load):
"""
Adds load to the protocol.
"""Adds load to the protocol.
Args:
_load: The load to add

View File

@@ -8,8 +8,7 @@ class Service(object):
"""Service class."""
def __init__(self, name: str, port: str, software_state: SoftwareState):
"""
Init.
"""Init.
:param name: The service name.
:param port: The service port.