File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
tests/test_primitives/test_reawaitable Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,10 @@ def _access_private_lock(awaitable, lock=None):
7676def _get_sentinel ():
7777 """Helper to get the sentinel value."""
7878 # Import here to avoid issues with accessing private module attributes
79- from returns .primitives .reawaitable import _sentinel # noqa: PLC0415, PLC2701
79+ from returns .primitives .reawaitable import (
80+ _sentinel , # noqa: PLC2701
81+ )
82+
8083 return _sentinel
8184
8285
@@ -319,7 +322,9 @@ async def _test_lock_path():
319322 # Test lock path when cache is already set (the missing branch)
320323 _access_private_cache (awaitable , 99 )
321324 cached_result = await _call_private_awaitable (awaitable )
322- assert cached_result == 99 # Should return cached value without entering if block
325+ assert (
326+ cached_result == 99
327+ ) # Should return cached value without entering if block
323328 assert counter .count == 1 # Should not increment
324329
325330
@@ -373,5 +378,5 @@ async def test_specific_branch_coverage():
373378 # Test fallback path where cache is already set
374379 await _test_fallback_with_cached_value ()
375380
376- # Test lock path where cache is already set
381+ # Test lock path where cache is already set
377382 await _test_lock_with_cached_value ()
You can’t perform that action at this time.
0 commit comments