Skip to content

Commit 302e42c

Browse files
proboscisclaude
andcommitted
Fix flake8 error in reawaitable.py
Add type cast to anyio.Lock to prevent name redefinition error while preserving type safety 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e95c17b commit 302e42c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

returns/primitives/reawaitable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async def __aexit__(self, exc_type, exc_val, exc_tb) -> None: ...
2222

2323
Lock: type[AsyncLock] = asyncio.Lock
2424
else:
25-
Lock = anyio.Lock
25+
Lock = cast(type[AsyncLock], anyio.Lock)
2626

2727
_ValueType = TypeVar('_ValueType')
2828
_AwaitableT = TypeVar('_AwaitableT', bound=Awaitable)

0 commit comments

Comments
 (0)