Skip to content

Commit 81d609c

Browse files
code style updates
1 parent b09b19e commit 81d609c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

astroquery/eso/core.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,12 +414,12 @@ def list_surveys(self, *, cache=True) -> List[str]:
414414
def _columns_table(self, table_name: str, *, which_tap: str = "tap_obs") -> Table:
415415
if which_tap == "tap_obs":
416416
help_query = ("select column_name, datatype, unit, xtype "
417-
f"from TAP_SCHEMA.columns where table_name = '{table_name}'")
417+
f"from TAP_SCHEMA.columns where table_name = '{table_name}'")
418418
else:
419419
schema = _EsoNames.catalogue_schema
420420
help_query = ("select column_name, datatype, unit, ucd "
421-
f"from TAP_SCHEMA.columns "
422-
f"where table_name = '{table_name.removeprefix(schema + '.')}'")
421+
f"from TAP_SCHEMA.columns "
422+
f"where table_name = '{table_name.removeprefix(schema + '.')}'")
423423
return self.query_tap(help_query, which_tap=which_tap)
424424

425425
@unlimited_maxrec
@@ -483,7 +483,7 @@ def _query_on_allowed_values(
483483
) -> Union[Table, int, str, None]:
484484
if user_params.print_help:
485485
self._list_column(user_params.table_name, which_tap=user_params.which_tap)
486-
return
486+
return
487487

488488
_raise_if_has_deprecated_keys(user_params.column_filters)
489489

@@ -1155,7 +1155,7 @@ def query_catalogue(self,
11551155
open_form: bool = False,
11561156
cache: bool = False,
11571157
ROW_LIMIT: Optional[int] = None,
1158-
) -> Union[Table, int, str]:
1158+
) -> Union[Table, int, str]:
11591159
"""
11601160
Query catalogue data contained in the ESO archive.
11611161
@@ -1240,4 +1240,5 @@ def query_catalogue(self,
12401240

12411241
return self._query_on_allowed_values(user_params, which_tap=which_tap)
12421242

1243+
12431244
Eso = EsoClass()

astroquery/eso/tests/test_eso_remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,4 +345,4 @@ def test_main_sgrastar(self):
345345

346346
assert len(result) == 5
347347
assert 'SGR A' in result['object']
348-
assert 'SGR A' in result['target']
348+
assert 'SGR A' in result['target']

0 commit comments

Comments
 (0)