Skip to content

Commit 3bb27ec

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent ada8bab commit 3bb27ec

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/test_primitives/test_reawaitable/test_concurrent_await.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ def _access_private_lock(awaitable, lock=None):
7676
def _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()

0 commit comments

Comments
 (0)