Initialize all direct instances to None during __init__
and assign them only during authentication
Example, zerodha broker has a kite object that refers to the direct instance.
During initialization, this would be set to None and the kite object would be assigned only during authentication.
Expected action after __init__
self.kite = None
Expect action after authenticate
self.kite = KiteObjectInstance
Initialize all direct instances to
Noneduring__init__and assign them only during authentication
Example, zerodha broker has a kite object that refers to the direct instance.
During initialization, this would be set to
Noneand the kite object would be assigned only during authentication.Expected action after
__init__self.kite = NoneExpect action after
authenticateself.kite = KiteObjectInstance