Skip to content

Commit 3aba733

Browse files
nkphysicsceb8
authored andcommitted
Refactor: Made heasarc kwargs keyword only
1 parent 84808bc commit 3aba733

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

astroquery/heasarc/core.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class HeasarcClass(BaseQuery):
3737
TIMEOUT = conf.timeout
3838
coord_systems = ['fk5', 'fk4', 'equatorial', 'galactic']
3939

40-
def query_async(self, request_payload, cache=True, url=None):
40+
def query_async(self, request_payload, *, cache=True, url=None):
4141
"""
4242
Submit a query based on a given request_payload. This allows detailed
4343
control of the query to be submitted.
@@ -50,7 +50,7 @@ def query_async(self, request_payload, cache=True, url=None):
5050
timeout=self.TIMEOUT, cache=cache)
5151
return response
5252

53-
def query_mission_list(self, cache=True, get_query_payload=False):
53+
def query_mission_list(self, *, cache=True, get_query_payload=False):
5454
"""
5555
Returns a list of all available mission tables with descriptions
5656
"""
@@ -76,7 +76,7 @@ def query_mission_list(self, cache=True, get_query_payload=False):
7676
data_start=3, data_end=-1)
7777
return table
7878

79-
def query_mission_cols(self, mission, cache=True, get_query_payload=False,
79+
def query_mission_cols(self, mission, *, cache=True, get_query_payload=False,
8080
**kwargs):
8181
"""
8282
Returns a list containing the names of columns that can be returned for
@@ -108,7 +108,7 @@ def query_mission_cols(self, mission, cache=True, get_query_payload=False,
108108

109109
return self._parse_result(response).colnames
110110

111-
def query_object_async(self, object_name, mission,
111+
def query_object_async(self, object_name, mission, *,
112112
cache=True, get_query_payload=False,
113113
**kwargs):
114114
"""
@@ -138,7 +138,7 @@ def query_object_async(self, object_name, mission,
138138
return self.query_async(request_payload, cache=cache)
139139

140140
def query_region_async(self, position: Union[coordinates.SkyCoord, str],
141-
mission, radius, cache=True, get_query_payload=False,
141+
mission, radius, *, cache=True, get_query_payload=False,
142142
**kwargs):
143143
"""
144144
Query around specific set of coordinates within a given mission
@@ -245,7 +245,7 @@ def _blank_table_fallback(self, data):
245245
warnings.warn(NoResultsWarning("No matching rows were found in the query."))
246246
return emptytable
247247

248-
def _parse_result(self, response, verbose=False):
248+
def _parse_result(self, response, *, verbose=False):
249249
# if verbose is False then suppress any VOTable related warnings
250250
if not verbose:
251251
commons.suppress_vo_warnings()

0 commit comments

Comments
 (0)