From 6d6d83919b2784125e8769ee40da68edd45dc677 Mon Sep 17 00:00:00 2001 From: Alessio <148966056+alessio-locatelli@users.noreply.github.com> Date: Mon, 8 Jun 2026 19:14:34 +0300 Subject: [PATCH] fix(type-annotations): add missing `_ExpandedRequestOptions.refresh` attribute --- HISTORY.md | 4 ++++ aiohttp_client_cache/session.py | 1 + 2 files changed, 5 insertions(+) diff --git a/HISTORY.md b/HISTORY.md index 7d08b62..2538981 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,9 @@ # History +## Not released + +- Added `_ExpandedRequestOptions.refresh` to satisfy Pyright type checking. + ## 0.14.3 (2026-01-07) - Fix compatibility with aiosqlite 0.22.1+ diff --git a/aiohttp_client_cache/session.py b/aiohttp_client_cache/session.py index 28c2e3c..2e92b45 100644 --- a/aiohttp_client_cache/session.py +++ b/aiohttp_client_cache/session.py @@ -24,6 +24,7 @@ class _ExpandedRequestOptions(_RequestOptions, total=False): expire_after: ExpirationTime + refresh: bool MIXIN_BASE = ClientSession