@@ -71,7 +71,7 @@ def async_wrapper(f):
7171 Copies the docstring of wrapped functions.
7272 """
7373
74- wrapped = getattr (AuthenticatedUserSession , f .__name__ )
74+ wrapped = getattr (AuthenticatedAlephClient , f .__name__ )
7575 f .__doc__ = wrapped .__doc__
7676
7777
@@ -95,7 +95,7 @@ def func_caller(*args, **kwargs):
9595async def run_async_watcher (
9696 * args , output_queue : queue .Queue , api_server : str , ** kwargs
9797):
98- async with UserSession (api_server = api_server ) as session :
98+ async with AlephClient (api_server = api_server ) as session :
9999 async for message in session .watch_messages (* args , ** kwargs ):
100100 output_queue .put (message )
101101
@@ -122,7 +122,7 @@ class UserSessionSync:
122122 >>> return self._wrap(self.async_session.func)(*args, **kwargs)
123123 """
124124
125- def __init__ (self , async_session : "UserSession " ):
125+ def __init__ (self , async_session : "AlephClient " ):
126126 self .async_session = async_session
127127
128128 def _wrap (self , method : Callable [..., Awaitable [T ]], * args , ** kwargs ):
@@ -272,9 +272,9 @@ def watch_messages(
272272
273273
274274class AuthenticatedUserSessionSync (UserSessionSync ):
275- async_session : "AuthenticatedUserSession "
275+ async_session : "AuthenticatedAlephClient "
276276
277- def __init__ (self , async_session : "AuthenticatedUserSession " ):
277+ def __init__ (self , async_session : "AuthenticatedAlephClient " ):
278278 super ().__init__ (async_session = async_session )
279279
280280 def ipfs_push (self , content : Mapping ) -> str :
@@ -436,7 +436,7 @@ def submit(
436436 )
437437
438438
439- class UserSession :
439+ class AlephClient :
440440 api_server : str
441441 http_session : aiohttp .ClientSession
442442
@@ -455,7 +455,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
455455 except RuntimeError :
456456 asyncio .run (close_fut )
457457
458- async def __aenter__ (self ) -> "UserSession " :
458+ async def __aenter__ (self ) -> "AlephClient " :
459459 return self
460460
461461 async def __aexit__ (self , exc_type , exc_val , exc_tb ):
@@ -807,7 +807,7 @@ async def watch_messages(
807807 break
808808
809809
810- class AuthenticatedUserSession ( UserSession ):
810+ class AuthenticatedAlephClient ( AlephClient ):
811811 account : Account
812812
813813 BROADCAST_MESSAGE_FIELDS = {
@@ -829,7 +829,7 @@ def __init__(self, account: Account, api_server: str):
829829 def __enter__ (self ) -> "AuthenticatedUserSessionSync" :
830830 return AuthenticatedUserSessionSync (async_session = self )
831831
832- async def __aenter__ (self ) -> "AuthenticatedUserSession " :
832+ async def __aenter__ (self ) -> "AuthenticatedAlephClient " :
833833 return self
834834
835835 async def ipfs_push (self , content : Mapping ) -> str :
0 commit comments