Skip to content

Commit b5d44c2

Browse files
committed
Fix import
1 parent e5f1e36 commit b5d44c2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from investing_algorithm_framework.core.context.bot_context import BotContext
1+
from investing_algorithm_framework.core.context.context import Context

investing_algorithm_framework/core/context/bot_context.py renamed to investing_algorithm_framework/core/context/context.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
from investing_algorithm_framework.core.states import BotState
77

88

9-
class BotContext(metaclass=Singleton):
9+
class Context(metaclass=Singleton):
1010
"""
11-
The BotContext defines the current state of the running bot. It also maintains a reference to an instance of a
12-
BotState subclass, which represents the current state of the BotContext.
11+
The Context defines the current state of the running algorithms. It also maintains a reference to an instance of a
12+
state subclass, which represents the current state of the context instance.
1313
"""
1414

15-
# A reference to the current state of the Bot Context.
15+
# A reference to the current state of the context.
1616
_state: BotState = None
1717

1818
# Settings reference
@@ -36,7 +36,7 @@ def _check_state(self, raise_exception: bool = False) -> bool:
3636

3737
if raise_exception:
3838
raise OperationalException(
39-
"Bot context doesn't have a state. Make sure that you set the state of bot either "
39+
"Context doesn't have a state. Make sure that you set the state either "
4040
"by initializing it or making sure that you transition to a new valid state."
4141
)
4242
else:

0 commit comments

Comments
 (0)