Updated for __slots__

This commit is contained in:
Dimitris Zlatanidis 2023-04-09 12:44:02 +03:00
parent 11d01cebb8
commit d0fbab31c2
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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