Skip to content

Commit

Permalink
Add missing slots to _RequestContextManager and `_WSRequestContextM…
Browse files Browse the repository at this point in the history
…anager` (#5329)

* Add missing slots to context managers

* Fix CONTRIBUTORS.txt

* Add notes to CHANGES

* Fix CONTRIBUTORS.txt
  • Loading branch information
Pliner authored Dec 14, 2020
1 parent b0ed732 commit eb34a72
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/5329.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add missing slots to ```_RequestContextManager`` and ``_WSRequestContextManager``
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ Yegor Roganov
Yifei Kong
Young-Ho Cha
Yuriy Shatrov
Yury Pliner
Yury Selivanov
Yusuke Tsutsumi
Yuval Ofir
Expand Down
4 changes: 4 additions & 0 deletions aiohttp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,8 @@ async def __aenter__(self) -> _RetType:


class _RequestContextManager(_BaseRequestContextManager[ClientResponse]):
__slots__ = ()

async def __aexit__(
self,
exc_type: Optional[Type[BaseException]],
Expand All @@ -1087,6 +1089,8 @@ async def __aexit__(


class _WSRequestContextManager(_BaseRequestContextManager[ClientWebSocketResponse]):
__slots__ = ()

async def __aexit__(
self,
exc_type: Optional[Type[BaseException]],
Expand Down

0 comments on commit eb34a72

Please sign in to comment.