File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 66
77
88class Client :
9- def __init__ (self , client_id ):
10- self .secrets = Secrets (client_id )
11- self .items = Items (client_id )
9+ secrets : Secrets
10+ items : Items
1211
1312 @classmethod
14- async def authenticate (cls , auth , integration_name , integration_version ):
13+ async def authenticate (self , auth , integration_name , integration_version ):
1514 config = new_default_config (
1615 auth = auth ,
1716 integration_name = integration_name ,
1817 integration_version = integration_version ,
1918 )
2019 client_id = int (await _init_client (config ))
21- self = cls (client_id )
22- self ._config = config
23- self ._finalizer = weakref .finalize (self , _release_client , client_id )
2420
25- return self
21+ authenticated_client = self ()
22+
23+ authenticated_client .secrets = Secrets (client_id )
24+ authenticated_client .items = Items (client_id )
25+ authenticated_client ._config = config
26+ authenticated_client ._finalizer = weakref .finalize (self , _release_client , client_id )
27+
28+ return authenticated_client
You can’t perform that action at this time.
0 commit comments