Skip to content

Commit

Permalink
[PR #9812/3a1bd0df backport][3.11] Add __slots__ to `PayloadRegistr…
Browse files Browse the repository at this point in the history
…y` (#9814)

Co-authored-by: J. Nick Koston <nick@koston.org>
  • Loading branch information
patchback[bot] and bdraco authored Nov 11, 2024
1 parent 28fba50 commit a6767a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aiohttp/payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ class PayloadRegistry:
note: we need zope.interface for more efficient adapter search
"""

__slots__ = ("_first", "_normal", "_last", "_normal_lookup")

def __init__(self) -> None:
self._first: List[_PayloadRegistryItem] = []
self._normal: List[_PayloadRegistryItem] = []
Expand Down

0 comments on commit a6767a0

Please sign in to comment.