lib.Types: Read __abstractmethods__ via getattr() #89
1 changed files with 4 additions and 1 deletions
|
|
@ -102,7 +102,10 @@ class LoadTypes(Types[T]): # export
|
||||||
self._debug(f'o "{name}" has wrong name')
|
self._debug(f'o "{name}" has wrong name')
|
||||||
continue
|
continue
|
||||||
if inspect.isabstract(c):
|
if inspect.isabstract(c):
|
||||||
self._debug(f'o "{name}" is abstract: {c.__abstractmethods__}')
|
abstract: frozenset[str] = getattr(
|
||||||
|
c, '__abstractmethods__', frozenset()
|
||||||
|
)
|
||||||
|
self._debug(f'o "{name}" is abstract: {abstract}')
|
||||||
continue
|
continue
|
||||||
if self.__type_filter:
|
if self.__type_filter:
|
||||||
for tp in self.__type_filter:
|
for tp in self.__type_filter:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue