Add __slots__ for PatchedAttribute

This commit is contained in:
Roman Mogylatov 2022-07-23 23:16:00 -04:00
parent ac04bc60f2
commit 194d947300

View File

@ -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