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