Update docstrings

This commit is contained in:
Dimitris Zlatanidis 2024-05-19 19:42:08 +03:00
parent 61c4977915
commit 340108cddb

View file

@ -14,19 +14,17 @@ from slpkg.toml_errors import TomlErrors
class Blacklist(Configs): # pylint: disable=[R0903] class Blacklist(Configs): # pylint: disable=[R0903]
"""Reads and returns the blacklist."""
""" def __init__(self) -> None:
Reads and returns the blacklist. """Initilazation class."""
"""
def __init__(self):
super(Configs, self).__init__() super(Configs, self).__init__()
self.toml_errors = TomlErrors() self.toml_errors = TomlErrors()
self.blacklist_file_toml: Path = Path(self.etc_path, 'blacklist.toml') self.blacklist_file_toml: Path = Path(self.etc_path, 'blacklist.toml')
def packages(self) -> tuple: def packages(self) -> tuple:
""" Reads the blacklist file. """ """Read the blacklist file."""
packages: tuple = tuple() packages: tuple = tuple()
if self.blacklist_file_toml.is_file(): if self.blacklist_file_toml.is_file():
try: try: