INNER CODE UNIT · Python
__isabstractmethod__
althonos/pyhmmer · src/pyhmmer/utils.py:62
def __isabstractmethod__(self) -> bool:
return getattr(self.func, "__isabstractmethod__", False)
def __get__(
self, obj: _S, cls: typing.Optional[typing.Type[_S]]
) -> typing.Callable[..., _T]:
def _method(*args, **kwargs): # type: ignore
method = self.dispatcher.dispatch(args[0].__class__)
return method.__get__(obj, cls)(*args, **kwargs)
_method.__isabstractmethod__ = self.__isabstractmethod__ # type: ignore
_method.register = self.register # type: ignore
functools.update_wrapper(_method, self.func)
return _method
@typing.overload
def register( # type: ignore
self,