From 8f9e174e7ce6cd504d9ffd930068a3ab2b89b44f Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Fri, 15 Nov 2024 13:55:21 -0500 Subject: [PATCH] `ExperimentAxisQuery`, `AxisIndexer` are explicitly `ABC`s --- python-spec/src/somacore/query/query.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python-spec/src/somacore/query/query.py b/python-spec/src/somacore/query/query.py index 0231fe1..0003a23 100644 --- a/python-spec/src/somacore/query/query.py +++ b/python-spec/src/somacore/query/query.py @@ -1,3 +1,4 @@ +import abc from typing import ( Any, Mapping, @@ -39,7 +40,7 @@ class AxisColumnNames(TypedDict, total=False): """var columns to use. All columns if ``None`` or not present.""" -class ExperimentAxisQuery: +class ExperimentAxisQuery(abc.ABC): """Axis-based query against a SOMA Experiment. ExperimentAxisQuery allows easy selection and extraction of data from a @@ -254,7 +255,7 @@ def __exit__(self, *_: Any) -> None: """Things that can be converted to a NumPy array.""" -class AxisIndexer: +class AxisIndexer(abc.ABC): """ Given a query, provides index-building services for obs/var axis.