Skip to content

Commit 72b06ab

Browse files
committed
fix: include ActionSchema in __init__.py exporting
1 parent 65b0c41 commit 72b06ab

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

bots/example.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
import itertools
88
from typing import Any, Iterator
99

10-
from balatrobot import Actions, Bot, Decks, Stakes
11-
from balatrobot.base import ActionSchema
10+
from balatrobot import Actions, ActionSchema, Bot, Decks, Stakes
1211

1312
# Predefined sequence of actions using the ActionSchema format
1413
plays: Iterator[ActionSchema] = itertools.cycle(

docs/bot-development.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ a predefined sequence of actions.
117117
import itertools
118118
from typing import Any, Iterator
119119

120-
from balatrobot import Actions, Bot, Decks, Stakes
121-
from balatrobot.base import ActionSchema
120+
from balatrobot import ActionSchema, Actions, Bot, Decks, Stakes
122121

123122
# Predefined sequence of actions using the ActionSchema format
124123
plays: Iterator[ActionSchema] = itertools.cycle(
@@ -545,7 +544,7 @@ Always use proper type hints for better code quality:
545544

546545
```python
547546
from typing import Any
548-
from balatrobot.base import ActionSchema
547+
from balatrobot import ActionSchema
549548

550549
def select_shop_action(self, env: dict[str, Any]) -> ActionSchema:
551550
"""Type hints help catch errors early."""

src/balatrobot/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
from .base import Bot
1+
from .base import ActionSchema, Bot
22
from .enums import Actions, Decks, Stakes, State
33

44
__all__ = [
5+
"ActionSchema",
56
"Actions",
67
"Bot",
78
"Decks",

0 commit comments

Comments
 (0)