mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 01:26:51 +03:00
Removing class service variables from __slots__ list
This commit is contained in:
parent
233dedbcff
commit
264a12daaf
|
@ -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):
|
||||
|
|
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user