mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +01:00
Updated for __slots__
This commit is contained in:
parent
11d01cebb8
commit
d0fbab31c2
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue