Skip to content

Commit d6bb20c

Browse files
Drop unused type-ignore comments on bytes args to setinputsizes test
Mypy flagged the ``# type: ignore[arg-type]`` comments as unused — the cursor.setinputsizes overload accepts ``object``-shaped args at the type-stub level, so the ignores were never live. Remove them so ``--warn-unused-ignores`` stays clean. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 51690ea commit d6bb20c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_cursor_setinputsizes_affinity_precedes_shape.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ async def test_async_setinputsizes_loop_affinity_precedes_shape_validation() ->
9898
def _runner() -> None:
9999
async def _invoke() -> None:
100100
try:
101-
cur.setinputsizes(b"not a sequence-of-int") # type: ignore[arg-type]
101+
cur.setinputsizes(b"not a sequence-of-int")
102102
except BaseException as e: # noqa: BLE001
103103
holder.append(e)
104104

@@ -164,5 +164,5 @@ async def test_async_open_cursor_same_loop_bad_arg_still_raises_shape() -> None:
164164
cur = AsyncCursor(conn)
165165
conn._ensure_locks()
166166
with pytest.raises(ProgrammingError) as excinfo:
167-
cur.setinputsizes(b"not a sequence-of-int") # type: ignore[arg-type]
167+
cur.setinputsizes(b"not a sequence-of-int")
168168
assert "size hints" in str(excinfo.value) or "expects a sequence" in str(excinfo.value)

0 commit comments

Comments
 (0)