Module Expr Str ImportFrom alias alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return NameLoad orelse Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad For NameStore AttributeLoad NameLoad attr body AugAssignBitOr NameStore Call NameLoad NameLoad If CompareGtE NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return SetComp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad decorator_list
N/A N/A 
Variation of ``tombola.Tombola`` implementing ``__subclasshook__``.

Tests with simple classes::

    >>> Tombola.__subclasshook__(object)
    NotImplemented
    >>> class Complete:
    ...     def __init__(): pass
    ...     def load(): pass
    ...     def pick(): pass
    ...     def loaded(): pass
    ...
    >>> Tombola.__subclasshook__(Complete)
    True
    >>> issubclass(Complete, Tombola)

 abc ABC abstractmethod inspect getmembers isfunction Tombola N/A ABC N/A __init__ N/A N/A self iterable N/A N/A N/A New instance is loaded from an iterable. N/A abstractmethod load N/A N/A self iterable N/A N/A N/A Add items from an iterable. N/A abstractmethod pick N/A N/A self N/A N/A N/A Remove item at random, returning it.

        This method should raise `LookupError` when the instance is empty.
         N/A abstractmethod loaded N/A N/A self N/A N/A N/A N/A N/A item N/A N/A self pick N/A N/A N/A LookupError N/A N/A False N/A N/A N/A N/A self load N/A item N/A True N/A __subclasshook__ N/A N/A cls other_cls N/A N/A N/A N/A cls Tombola N/A N/A interface_names N/A function_names cls N/A found_names N/A set N/A a_cls N/A other_cls __mro__ N/A N/A found_names N/A function_names a_cls N/A N/A found_names interface_names N/A N/A True N/A NotImplemented N/A classmethod N/A function_names N/A N/A obj N/A N/A N/A N/A name N/A N/A name _ N/A getmembers obj isfunction N/A