update __slots__ for Option/BaseOption
This commit is contained in:
parent
8ccfba1671
commit
84b7ec7b37
|
@ -96,7 +96,9 @@ class BaseOption(BaseInformation):
|
||||||
in options that have to be set only once, it is of course done in the
|
in options that have to be set only once, it is of course done in the
|
||||||
__setattr__ method
|
__setattr__ method
|
||||||
"""
|
"""
|
||||||
__slots__ = ('_readonly', '_state_consistencies', '_state_requires')
|
__slots__ = ('_name', '_requires', '_properties', '_readonly',
|
||||||
|
'_consistencies', '_calc_properties', '_state_consistencies',
|
||||||
|
'_state_requires')
|
||||||
|
|
||||||
def __init__(self, name, doc, requires, properties):
|
def __init__(self, name, doc, requires, properties):
|
||||||
if not valid_name(name):
|
if not valid_name(name):
|
||||||
|
@ -230,10 +232,8 @@ class Option(BaseOption):
|
||||||
|
|
||||||
Reminder: an Option object is **not** a container for the value
|
Reminder: an Option object is **not** a container for the value
|
||||||
"""
|
"""
|
||||||
__slots__ = ('_name', '_requires', '_multi', '_validator',
|
__slots__ = ('_multi', '_validator', '_default_multi', '_default', '_callback',
|
||||||
'_default_multi', '_default', '_properties', '_callback',
|
'_multitype', '_master_slaves', '__weakref__')
|
||||||
'_multitype', '_master_slaves', '_consistencies',
|
|
||||||
'_calc_properties', '__weakref__')
|
|
||||||
_empty = ''
|
_empty = ''
|
||||||
|
|
||||||
def __init__(self, name, doc, default=None, default_multi=None,
|
def __init__(self, name, doc, default=None, default_multi=None,
|
||||||
|
|
Loading…
Reference in New Issue