Skip to content

Commit a6767a0

Browse files
[PR #9812/3a1bd0df backport][3.11] Add __slots__ to PayloadRegistry (#9814)
Co-authored-by: J. Nick Koston <[email protected]>
1 parent 28fba50 commit a6767a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aiohttp/payload.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ class PayloadRegistry:
9797
note: we need zope.interface for more efficient adapter search
9898
"""
9999

100+
__slots__ = ("_first", "_normal", "_last", "_normal_lookup")
101+
100102
def __init__(self) -> None:
101103
self._first: List[_PayloadRegistryItem] = []
102104
self._normal: List[_PayloadRegistryItem] = []

0 commit comments

Comments
 (0)