From eee06457bc5f9da2d865669ed21fdba8a4028ec5 Mon Sep 17 00:00:00 2001 From: Jordan Cook Date: Fri, 21 Oct 2022 12:18:46 -0500 Subject: Add some missing type hints --- requests_cache/backends/sqlite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'requests_cache') diff --git a/requests_cache/backends/sqlite.py b/requests_cache/backends/sqlite.py index cbfc296..502c0dd 100644 --- a/requests_cache/backends/sqlite.py +++ b/requests_cache/backends/sqlite.py @@ -131,7 +131,7 @@ class SQLiteCache(BaseCache): reversed: bool = False, limit: int = None, expired: bool = True, - ): + ) -> Iterator[CachedResponse]: """Get cached responses, with sorting and other query options. Args: @@ -306,7 +306,7 @@ class SQLiteDict(BaseStorage): def sorted( self, key: str = 'expires', reversed: bool = False, limit: int = None, expired: bool = True - ): + ) -> Iterator[CachedResponse]: """Get cache values in sorted order; see :py:meth:`.SQLiteCache.sorted` for usage details""" # Get sort key, direction, and limit if key not in ['expires', 'size', 'key']: -- cgit v1.2.1