Skip to content

Commit 62496bb

Browse files
committed
Update docstring for api.call
1 parent 10bac7f commit 62496bb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

codeforces/api.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __generate_api_sig(method, args, secret):
2626
).hexdigest()
2727

2828

29-
def call(method, key=None, secret=None, **kargs):
29+
def call(method, key=None, secret=None, **kwargs):
3030
"""
3131
Call a Codeforces API method
3232
@@ -39,13 +39,15 @@ def call(method, key=None, secret=None, **kargs):
3939
Your api key (needed for authorized calls)
4040
secret: str, optional
4141
Secret for your api key.
42+
**kwargs
43+
Arguments for the api call
4244
4345
Returns
4446
-------
45-
json
46-
Returns a python object containing the results of the api call.
47+
any
48+
A python object containing the results of the api call.
4749
"""
48-
args = kargs.copy()
50+
args = kwargs.copy()
4951

5052
if (key is not None) and (secret is not None):
5153
args['time'] = int(time.time())

0 commit comments

Comments
 (0)