Removing class service variables from __slots__ list

This commit is contained in:
Roman Mogilatov 2015-03-26 01:38:48 +02:00
parent 233dedbcff
commit 264a12daaf
2 changed files with 2 additions and 5 deletions

View File

@ -11,7 +11,7 @@ class Injection(object):
"""Base injection class."""
__IS_OBJECTS_INJECTION__ = True
__slots__ = ('__IS_OBJECTS_INJECTION__', 'name', 'injectable')
__slots__ = ('name', 'injectable')
def __init__(self, name, injectable):
"""Initializer."""
@ -31,7 +31,6 @@ class KwArg(Injection):
"""Keyword argument injection."""
__IS_OBJECTS_KWARG_INJECTION__ = True
__slots__ = ('__IS_OBJECTS_KWARG_INJECTION__',)
class Attribute(Injection):
@ -39,7 +38,6 @@ class Attribute(Injection):
"""Attribute injection."""
__IS_OBJECTS_ATTRIBUTE_INJECTION__ = True
__slots__ = ('__IS_OBJECTS_ATTRIBUTE_INJECTION__',)
class Method(Injection):
@ -47,7 +45,6 @@ class Method(Injection):
"""Method injection."""
__IS_OBJECTS_METHOD_INJECTION__ = True
__slots__ = ('__IS_OBJECTS_METHOD_INJECTION__',)
def inject(injection):

View File

@ -15,7 +15,7 @@ class Provider(object):
"""Base provider class."""
__IS_OBJECTS_PROVIDER__ = True
__slots__ = ('__IS_OBJECTS_PROVIDER__', 'overridden')
__slots__ = ('overridden',)
def __init__(self):
"""Initializer."""