Skip to content

Commit 3d5bd2f

Browse files
committed
Ruff issues
1 parent 6600869 commit 3d5bd2f

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/hats_tap/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
This server uses the adql_to_lsdb module to convert ADQL queries
1111
"""
1212

13+
from ._version import __version__
1314
from .import_tap_schema import TAPSchemaImporter
1415
from .tap_schema_db import TAPSchemaDatabase
15-
from ._version import __version__
1616

1717
__all__ = ["TAPSchemaDatabase", "TAPSchemaImporter", "__version__"]

tests/hats_tap/test_adql_to_lsdb.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import pathlib
44

55
import pytest
6+
67
from hats_tap.adql_to_lsdb import parse_adql_entities
78

89

@@ -336,9 +337,9 @@ def test_cone_search_structure(self):
336337
assert "ra" in spatial
337338
assert "dec" in spatial
338339
assert "radius" in spatial
339-
assert isinstance(spatial["ra"], (int, float))
340-
assert isinstance(spatial["dec"], (int, float))
341-
assert isinstance(spatial["radius"], (int, float))
340+
assert isinstance(spatial["ra"], int | float)
341+
assert isinstance(spatial["dec"], int | float)
342+
assert isinstance(spatial["radius"], int | float)
342343

343344
def test_polygon_search_structure(self):
344345
"""Test that PolygonSearch has correct structure."""

tests/hats_tap/test_tap_schema_db_threading.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import threading
55

66
import pytest
7+
78
from hats_tap.tap_schema_db import TAPSchemaDatabase
89

910

0 commit comments

Comments
 (0)