mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 09:36:48 +03:00
Add __slots__ for PatchedAttribute
This commit is contained in:
parent
ac04bc60f2
commit
194d947300
|
@ -175,6 +175,12 @@ class PatchedCallable:
|
|||
|
||||
class PatchedAttribute:
|
||||
|
||||
__slots__ = (
|
||||
"member",
|
||||
"name",
|
||||
"marker",
|
||||
)
|
||||
|
||||
def __init__(self, member: Any, name: str, marker: "_Marker") -> None:
|
||||
self.member = member
|
||||
self.name = name
|
||||
|
|
Loading…
Reference in New Issue
Block a user