From d0fbab31c2bd9744e1076ab47e0b0679f6d28f8a Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 9 Apr 2023 12:44:02 +0300 Subject: [PATCH] Updated for __slots__ --- slpkg/dependees.py | 2 +- slpkg/views/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/slpkg/dependees.py b/slpkg/dependees.py index 02f203e9..8da79cb5 100644 --- a/slpkg/dependees.py +++ b/slpkg/dependees.py @@ -12,7 +12,7 @@ class Dependees(Configs): """ Show which packages depend. """ def __init__(self, data: dict, packages: list, flags: list): - __slots__ = 'packages', 'flags' + __slots__ = 'data', 'packages', 'flags' super(Configs, self).__init__() self.data: dict = data self.packages: list = packages diff --git a/slpkg/views/views.py b/slpkg/views/views.py index 904713db..4d122f8d 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -19,7 +19,7 @@ from slpkg.models.models import session as Session class ViewMessage(Configs): def __init__(self, flags: list, data=None, repo=None): - __slots__ = 'flags', 'repo' + __slots__ = 'flags', 'data', 'repo' super(Configs, self).__init__() self.flags: list = flags self.data: dict = data