ObtainableABC#

class anomalearn.abc.ObtainableABC#

Bases: Reversible, Sized

Abstract class for objects implementing __getitem__.

List of methods

__iter__()

__reversed__()

List of decorated methods

__getitem__(item)

__len__()

List of class methods

__subclasshook__(C)

Abstract classes can override this to customize issubclass().

Methods

__iter__()#
__reversed__()#

Decorated methods

abstract __getitem__(item)#
abstract __len__()#

Class methods

classmethod __subclasshook__(C)#

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).