@@ -18,7 +18,7 @@ def __init__(self,
1818 api : str ,
1919 download : bool = True ,
2020 verbose : bool = False ,
21- * args : str , * *kwds : str
21+ ** kwds : str
2222 ) -> None :
2323 """Class intended as base class for superclasses.
2424
@@ -28,7 +28,6 @@ def __init__(self,
2828 :param download: Whether to download the query or not. Has no effect
2929 for retrieval requests.
3030 :param verbose: Whether to print a download progress bar.
31- :param args: Keywords passed on `get_content()`
3231 :param kwds: Keywords passed on `get_content()`
3332
3433 Raises
@@ -63,12 +62,12 @@ def __init__(self,
6362 else :
6463 self ._json = loads (fname .read_text ())
6564 else :
66- resp = get_content (url , api , params , * args , * *kwds )
65+ resp = get_content (url , api , params , ** kwds )
6766 header = resp .headers
6867
6968 if ab_ref_retrieval :
7069 kwds ['startref' ] = '1'
71- data = _get_all_refs (url , params , verbose , resp , * args , * *kwds )
70+ data = _get_all_refs (url , params , verbose , resp , ** kwds )
7271 self ._json = data
7372 data = [data ]
7473 elif search_request :
@@ -104,7 +103,7 @@ def __init__(self,
104103 else :
105104 start += params ["size" ]
106105 params .update ({'start' : start })
107- resp = get_content (url , api , params , * args , * *kwds )
106+ resp = get_content (url , api , params , ** kwds )
108107 res = resp .json ()
109108 data .extend (res .get ('search-results' , {}).get ('entry' , []))
110109 header = resp .headers # Use header of final call
@@ -168,7 +167,7 @@ def _check_file_age(self):
168167 return refresh , mod_ts
169168
170169
171- def _get_all_refs (url : str , params : dict , verbose : bool , resp : dict , * args , * *kwds ) -> dict :
170+ def _get_all_refs (url : str , params : dict , verbose : bool , resp : dict , ** kwds ) -> dict :
172171 """Get all references for `AbstractRetrieval` with view `REF`."""
173172 # startref starts at 1 (0 does not work)
174173 # Max refs per query are 40
@@ -191,7 +190,7 @@ def _get_all_refs(url: str, params: dict, verbose: bool, resp: dict, *args, **kw
191190 # Increment startref
192191 kwds ['startref' ] = str (int (kwds ['startref' ]) + ref_len )
193192 # Get
194- resp = get_content (url , 'AbstractRetrieval' , params , * args , * *kwds )
193+ resp = get_content (url , 'AbstractRetrieval' , params , ** kwds )
195194 res = resp .json ()
196195 res = parse_content .chained_get (res , path_reference )
197196 # Append
0 commit comments