Skip to content

Commit 9b2dad4

Browse files
CI fix: drop forward-ref quotes from iter_accessible_slots annotation
ruff UP037: `list[tuple[int, "ItemSlot | None"]]` -> the quotes were unnecessary because `ItemSlot` is imported at the module top (line 52) and `from __future__ import annotations` is in effect. Plain `list[tuple[int, ItemSlot | None]]` is the canonical form. Verification: * ruff check python/minecraft_bot tests: all checks passed. * pytest tests/python/unit: 980 passed. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent b1f0063 commit 9b2dad4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/minecraft_bot/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ def count_item(self, name: str) -> int:
833833
"""Total count of items named ``name`` across the inventory."""
834834
return self.inventory.count_item(name)
835835

836-
def iter_accessible_slots(self) -> list[tuple[int, "ItemSlot | None"]]:
836+
def iter_accessible_slots(self) -> list[tuple[int, ItemSlot | None]]:
837837
"""All visible slots — player_slots followed by container_slots.
838838
839839
Use this for operations that genuinely need the merged view

0 commit comments

Comments
 (0)