Skip to content

Commit 43081a7

Browse files
JacobCoffeeclaude
andcommitted
fix: add type annotation for status_codes in concurrent test
Added explicit type annotation `list[int]` to fix ty type checker error in test_concurrent_guild_creation_same_id. This resolves the unsupported-operator error when comparing with 400. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 682ae8e commit 43081a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/test_api_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ async def test_concurrent_guild_creation_same_id(
363363
results = await asyncio.gather(*tasks, return_exceptions=True)
364364

365365
# One should succeed (201), one should fail (409 or 500)
366-
status_codes = [r.status_code if hasattr(r, "status_code") else 500 for r in results] # type: ignore[misc]
366+
status_codes: list[int] = [r.status_code if hasattr(r, "status_code") else 500 for r in results] # type: ignore[misc]
367367
assert HTTP_201_CREATED in status_codes
368368
# At least one should indicate a conflict/error
369369
assert any(code >= 400 for code in status_codes)

0 commit comments

Comments
 (0)