Skip to content

Commit

Permalink
Udate docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
hemantapkh committed Jul 26, 2021
1 parent a12f104 commit 25b6923
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ncellapp/ncell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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'])
Expand Down

0 comments on commit 25b6923

Please sign in to comment.