From 194d947300cc6253369860d3ebe9a4f60027c6f4 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Sat, 23 Jul 2022 23:16:00 -0400 Subject: [PATCH] Add __slots__ for PatchedAttribute --- src/dependency_injector/wiring.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dependency_injector/wiring.py b/src/dependency_injector/wiring.py index 21b11be5..5a581e4d 100644 --- a/src/dependency_injector/wiring.py +++ b/src/dependency_injector/wiring.py @@ -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