8.5.4. pymodaq_utils.abstract module

Created the 21/11/2022

@author: Sebastien Weber

Introduce some nice ABCMeta class allowing that a particular attribute has been declared when instantiating See https://stackoverflow.com/a/50381071/8090831

class pymodaq_utils.abstract.ABCMeta(name, bases, namespace, /, **kwargs)[source]

Bases: ABCMeta

Methods

__call__(*args, **kwargs)

class pymodaq_utils.abstract.DummyAttribute[source]

Bases: object

pymodaq_utils.abstract.abstract_attribute(obj=None)[source]

Declare an attribute that subclasses have to define, checked when instantiating (see ABCMeta)

Use it as a decorator on a property or call it without argument: name = abstract_attribute().

Return type:

R