Skip to content

Commit d2483dd

Browse files
Kristian NylundKristian Nylund
authored andcommitted
type annotations
1 parent 09a748c commit d2483dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text_2_sql/autogen/src/autogen_text_2_sql/state_store.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class InMemoryStateStore(StateStore):
1515
def __init__(self):
1616
self.cache = TTLCache(maxsize=1000, ttl=4*60*60) # 4 hours
1717

18-
def get_state(self, thread_id):
18+
def get_state(self, thread_id: str) -> dict:
1919
return self.cache.get(thread_id)
2020

21-
def save_state(self, thread_id, state):
21+
def save_state(self, thread_id: str, state: dict) -> None:
2222
self.cache[thread_id] = state

0 commit comments

Comments
 (0)