Skip to content

Commit

Permalink
Apply some more uses of Self in return types.
Browse files Browse the repository at this point in the history
  • Loading branch information
ubernostrum committed Nov 15, 2024
1 parent b3027dc commit 0ef536f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/akismet/_async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ async def validated_client(
# Async context-manager protocol.
# ----------------------------------------------------------------------------

async def __aenter__(self) -> "AsyncClient":
async def __aenter__(self) -> Self:
"""
Entry method of the async context manager.
Expand Down
2 changes: 1 addition & 1 deletion src/akismet/_sync_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def validated_client(
# Context-manager protocol.
# ----------------------------------------------------------------------------

def __enter__(self) -> "SyncClient":
def __enter__(self) -> Self:
"""
Entry method of the context manager.
Expand Down

0 comments on commit 0ef536f

Please sign in to comment.