diff --git a/src/python/jw/pkg/lib/Types.py b/src/python/jw/pkg/lib/Types.py index 6b27ea85..bfae01ad 100644 --- a/src/python/jw/pkg/lib/Types.py +++ b/src/python/jw/pkg/lib/Types.py @@ -5,7 +5,7 @@ import os import re import sys -from typing import TYPE_CHECKING, Any, Generic, Iterable, TypeGuard, TypeVar, override +from typing import TYPE_CHECKING, Any, Generic, Iterable, TypeVar, override from .log import ERR, OFF, log, parse_log_level @@ -15,9 +15,6 @@ if TYPE_CHECKING: T = TypeVar('T') -def is_abc_class(c: type[object]) -> TypeGuard[abc.ABCMeta]: - return isinstance(c, abc.ABCMeta) - class Types(abc.ABC, Iterable[type[T]], Generic[T]): # export @override @@ -104,9 +101,6 @@ class LoadTypes(Types[T]): # export if rx is not None and not re.match(rx, member_name): self._debug(f'o "{name}" has wrong name') continue - if not is_abc_class(c): - self._debug(f'o "{name}" is not derived from ABCMeta') - continue if inspect.isabstract(c): self._debug(f'o "{name}" is abstract: {c.__abstractmethods__}') continue