Skip to content

Commit cbdedb1

Browse files
author
rodrigo.nogueira
committed
test: restore test assertions and fix CI blank-line formatting
1 parent 9007035 commit cbdedb1

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

async_lru/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
class AlruCacheLoopResetWarning(UserWarning):
4949
"""Emitted once per cache instance when a loop change triggers an auto-reset."""
5050

51+
5152
@final
5253
class _CacheParameters(TypedDict):
5354
typed: bool

tests/test_thread_safety.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ async def cached_func(key: str) -> str:
2828
assert cached_func.cache_info().hits == 0
2929
assert cached_func.cache_info().misses == 1
3030

31+
3132
@pytest.mark.filterwarnings("ignore::async_lru.AlruCacheLoopResetWarning")
3233
def test_cross_loop_preserves_stats_reset() -> None:
3334
@alru_cache(maxsize=100)

0 commit comments

Comments
 (0)