BeautyyuYanli commited on
Commit
a2c6dba
·
unverified ·
1 Parent(s): 74281eb

Use Optional as arguments type label (#104)

Browse files
Files changed (1) hide show
  1. src/EdgeGPT.py +2 -2
src/EdgeGPT.py CHANGED
@@ -132,7 +132,7 @@ class Conversation:
132
  Conversation API
133
  """
134
 
135
- def __init__(self, cookiePath: str = "", cookies: dict | None = None) -> None:
136
  self.struct: dict = {
137
  "conversationId": None,
138
  "clientId": None,
@@ -242,7 +242,7 @@ class Chatbot:
242
  Combines everything to make it seamless
243
  """
244
 
245
- def __init__(self, cookiePath: str = "", cookies: dict | None = None) -> None:
246
  self.cookiePath: str = cookiePath
247
  self.cookies: dict | None = cookies
248
  self.chat_hub: ChatHub = ChatHub(
 
132
  Conversation API
133
  """
134
 
135
+ def __init__(self, cookiePath: str = "", cookies: Optional[dict] = None) -> None:
136
  self.struct: dict = {
137
  "conversationId": None,
138
  "clientId": None,
 
242
  Combines everything to make it seamless
243
  """
244
 
245
+ def __init__(self, cookiePath: str = "", cookies: Optional[dict] = None) -> None:
246
  self.cookiePath: str = cookiePath
247
  self.cookies: dict | None = cookies
248
  self.chat_hub: ChatHub = ChatHub(