Skip to content

Commit

Permalink
MAINT: Do not mark _Mixin._from_iterable as abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
BvB93 committed May 25, 2023
1 parent 5cf1835 commit c8364db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nanoutils/hdf5_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@
H5PY_EX: None | Exception = None
H5PY_VERSION = VersionInfo._make(h5py.version.version_tuple[:3])
except Exception as ex:
H5PY_EX = ex
H5PY_VERSION = VersionInfo(0, 0, 0)
H5PyDataset = "h5py.Dataset"
if not TYPE_CHECKING:
H5PY_EX = ex
H5PY_VERSION = VersionInfo(0, 0, 0)
H5PyDataset = "h5py.Dataset"

_T_co = TypeVar("_T_co", covariant=True)
_T = TypeVar("_T")
Expand Down Expand Up @@ -102,7 +103,6 @@ def __sub__(self, other: AbstractSet[Any]) -> set[_T_co]:
def __iter__(self) -> Iterator[_T_co]: ...

@classmethod
@abc.abstractmethod
def _from_iterable(cls, it: Iterable[_T_co]) -> set[_T_co]: ...
else:
__rand__ = __and__
Expand Down

0 comments on commit c8364db

Please sign in to comment.