Skip to content

Commit

Permalink
pylint is dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkdl committed Jun 10, 2024
1 parent 108c0d1 commit 8aee74a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ async def test_handshake_exception_before_accept() -> None:
async def handler(request):
raise ValueError()

with pytest.raises((BaseExceptionGroup, ValueError)) as exc:
with pytest.raises((BaseExceptionGroup, ValueError)) as exc: # pylint: disable=possibly-used-before-assignment
async with trio.open_nursery() as nursery:
server = await nursery.start(serve_websocket, handler, HOST, 0,
None)
Expand Down
2 changes: 1 addition & 1 deletion trio_websocket/_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __exit__(self, ty, value, tb):

if _TRIO_MULTI_ERROR: # pragma: no cover
filtered_exception = trio.MultiError.filter(_ignore_cancel, value) # pylint: disable=no-member
elif isinstance(value, BaseExceptionGroup):
elif isinstance(value, BaseExceptionGroup): # pylint: disable=possibly-used-before-assignment
filtered_exception = value.subgroup(lambda exc: not isinstance(exc, trio.Cancelled))
else:
filtered_exception = _ignore_cancel(value)
Expand Down

0 comments on commit 8aee74a

Please sign in to comment.