diff --git a/slpkg/sbos/dependencies.py b/slpkg/sbos/dependencies.py index 7d195858..7c33ac43 100644 --- a/slpkg/sbos/dependencies.py +++ b/slpkg/sbos/dependencies.py @@ -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.