Skip to content

Commit 2f25b4e

Browse files
nkphysicsbsipocz
authored andcommitted
Refactor: Made template_module kwargs keyword only
1 parent 0ec2e7e commit 2f25b4e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

astroquery/template_module/core.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def query_object(object_name, get_query_payload=False)
6161
return result
6262
"""
6363

64-
def query_object_async(self, object_name, get_query_payload=False,
64+
def query_object_async(self, object_name, *, get_query_payload=False,
6565
cache=True):
6666
"""
6767
This method is for services that can parse object names. Otherwise
@@ -140,7 +140,7 @@ def query_object_async(self, object_name, get_query_payload=False,
140140
# actual HTTP request and returns the HTTP response
141141

142142
def query_region_async(self, coordinates, radius, height, width,
143-
get_query_payload=False, cache=True):
143+
*, get_query_payload=False, cache=True):
144144
"""
145145
Queries a region around the specified coordinates.
146146
@@ -187,7 +187,7 @@ def _args_to_payload(self, *args, **kwargs):
187187
# This should parse the raw HTTP response and return it as
188188
# an `astropy.table.Table`. Below is the skeleton:
189189

190-
def _parse_result(self, response, verbose=False):
190+
def _parse_result(self, response, *, verbose=False):
191191
# if verbose is False then suppress any VOTable related warnings
192192
if not verbose:
193193
commons.suppress_vo_warnings()
@@ -253,7 +253,7 @@ def get_images(self, coordinates, radius, get_query_payload):
253253
return [obj.get_fits() for obj in readable_objs]
254254

255255
@prepend_docstr_nosections(get_images.__doc__)
256-
def get_images_async(self, coordinates, radius, get_query_payload=False):
256+
def get_images_async(self, coordinates, radius, *, get_query_payload=False):
257257
"""
258258
Returns
259259
-------
@@ -275,7 +275,7 @@ def get_images_async(self, coordinates, radius, get_query_payload=False):
275275
# links for the images as a list
276276

277277
@prepend_docstr_nosections(get_images.__doc__)
278-
def get_image_list(self, coordinates, radius, get_query_payload=False,
278+
def get_image_list(self, coordinates, radius, *, get_query_payload=False,
279279
cache=True):
280280
"""
281281
Returns

0 commit comments

Comments
 (0)