File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5- from typing import TYPE_CHECKING
5+ from typing import TYPE_CHECKING , Self
66
77import httpx
88
@@ -112,7 +112,7 @@ def __init__(
112112 self ._client
113113 )
114114
115- async def __aenter__ (self ) -> AsyncClient :
115+ async def __aenter__ (self ) -> Self :
116116 """Enter the async context manager.
117117
118118 Returns:
Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5- from typing import TYPE_CHECKING
5+ from typing import TYPE_CHECKING , Self
66
77import httpx
88
@@ -92,7 +92,7 @@ def __init__(
9292 self .issue = IssueOperations (self ._client )
9393 self .headline = HeadlineOperations (self ._client )
9494
95- def __enter__ (self ) -> Client :
95+ def __enter__ (self ) -> Self :
9696 """Context manager entry.
9797
9898 Returns:
You can’t perform that action at this time.
0 commit comments