Fixed D204,D205,D209,D400

This commit is contained in:
Dimitris Zlatanidis 2024-05-22 19:07:20 +03:00
parent 32754b4a54
commit 70704a105f

View file

@ -6,8 +6,8 @@ from slpkg.utilities import Utilities
class Requires:
"""Creates a tuple of dependencies with
the right order to install."""
"""Create a tuple with package dependencies."""
__slots__ = (
'data', 'name', 'flags', 'utils', 'option_for_resolve_off'
)
@ -21,7 +21,10 @@ class Requires:
('-O', '--resolve-off'), flags)
def resolve(self) -> tuple:
"""Resolve the dependencies."""
"""Resolve the dependencies.
Return package dependencies in the right order.
"""
dependencies: tuple = ()
if not self.option_for_resolve_off:
@ -40,6 +43,7 @@ class Requires:
def remove_deps(self, requires: list) -> list:
"""Remove requirements that not in the repository.
Args:
requires (list): List of requires.