From 25b6923d0ef2d692ff970e9b37ceb88fdb20ffe3 Mon Sep 17 00:00:00 2001 From: Hemanta Pokharel Date: Mon, 26 Jul 2021 20:46:00 +0545 Subject: [PATCH] Udate docstring --- ncellapp/ncell.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ncellapp/ncell.py b/ncellapp/ncell.py index 8c51a1c..9a37c43 100644 --- a/ncellapp/ncell.py +++ b/ncellapp/ncell.py @@ -12,7 +12,7 @@ class ncell(NcellApp): """This class contains the methods for using the features of ncell app. Args: - token (string): The token of the account. + token (string): Token of the account. autoRefresh (bool, optional): True to automatically refresh the token after it expires, default is False. afterRefresh (list, optional): List with two elements, first element is the module name and second element is the function name. args (list, optional): List of the arguments to the afterRefresh function. __token__ is a special parameter which contains the refreshed token. @@ -39,7 +39,6 @@ class ncell(NcellApp): >>> # In this type of object, the token is refreshed automatically after it expires and the afterRefresh function is called. >>> def showNewToken(token, name): >>> ... print(f'Hello {name}, the previous token is expired and the current token is {token}.') - >>> # __name__ can be passed if the afterRefresh function is on the current module. >>> # __token__ is a special parameter which contains the refreshed token. >>> account = ncell(token='TOKEN', autoRefresh=True, afterRefresh=[__name__, 'showNewToken'], args=['__token__', 'sir'])