@@ -89,7 +89,7 @@ async def subscribe(self, symbols: Union[str, List[str]]):
8989        Subscribe to a stock symbol or a list of stock symbols. 
9090
9191        Args: 
92-             symbols (str |  List[str]): Stock symbol(s) to subscribe to. 
92+             symbols (Union[ str,  List[str] ]): Stock symbol(s) to subscribe to. 
9393        """ 
9494        await  self ._connect ()
9595
@@ -114,7 +114,7 @@ async def unsubscribe(self, symbols: Union[str, List[str]]):
114114        Unsubscribe from a stock symbol or a list of stock symbols. 
115115
116116        Args: 
117-             symbols (str |  List[str]): Stock symbol(s) to unsubscribe from. 
117+             symbols (Union[ str,  List[str] ]): Stock symbol(s) to unsubscribe from. 
118118        """ 
119119        await  self ._connect ()
120120
@@ -235,12 +235,12 @@ def _connect(self):
235235            self ._ws  =  None 
236236            raise 
237237
238-     def  subscribe (self , symbols : str   |   List [str ]):
238+     def  subscribe (self , symbols : Union [ str ,  List [str ] ]):
239239        """ 
240240        Subscribe to a stock symbol or a list of stock symbols. 
241241
242242        Args: 
243-             symbols (str |  List[str]): Stock symbol(s) to subscribe to. 
243+             symbols (Union[ str,  List[str] ]): Stock symbol(s) to subscribe to. 
244244        """ 
245245        self ._connect ()
246246
@@ -256,12 +256,12 @@ def subscribe(self, symbols: str | List[str]):
256256        if  self .verbose :
257257            print (f"Subscribed to symbols: { symbols }  " )
258258
259-     def  unsubscribe (self , symbols : str   |   List [str ]):
259+     def  unsubscribe (self , symbols : Union [ str ,  List [str ] ]):
260260        """ 
261261        Unsubscribe from a stock symbol or a list of stock symbols. 
262262
263263        Args: 
264-             symbols (str |  List[str]): Stock symbol(s) to unsubscribe from. 
264+             symbols (Union[ str,  List[str] ]): Stock symbol(s) to unsubscribe from. 
265265        """ 
266266        self ._connect ()
267267
0 commit comments