From ac35d681bcc68c83061488affb891fea7fa82478 Mon Sep 17 00:00:00 2001 From: Franccesco Orozco Date: Thu, 23 Jul 2026 19:54:52 -0600 Subject: [PATCH] dream: annotate client context managers with Self Dream dream-2026-07-23.1 finding 008. --- src/bloomy/async_client.py | 4 ++-- src/bloomy/client.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bloomy/async_client.py b/src/bloomy/async_client.py index 61f77d4..c46bf5a 100644 --- a/src/bloomy/async_client.py +++ b/src/bloomy/async_client.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import TYPE_CHECKING +from typing import TYPE_CHECKING, Self import httpx @@ -112,7 +112,7 @@ def __init__( self._client ) - async def __aenter__(self) -> AsyncClient: + async def __aenter__(self) -> Self: """Enter the async context manager. Returns: diff --git a/src/bloomy/client.py b/src/bloomy/client.py index b6d3d78..d3ff661 100644 --- a/src/bloomy/client.py +++ b/src/bloomy/client.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import TYPE_CHECKING +from typing import TYPE_CHECKING, Self import httpx @@ -92,7 +92,7 @@ def __init__( self.issue = IssueOperations(self._client) self.headline = HeadlineOperations(self._client) - def __enter__(self) -> Client: + def __enter__(self) -> Self: """Context manager entry. Returns: