get_attr#

SettingsBase.get_attr(attr, attr_type_or_types=None)#

Get the requested attribute for the object.

Parameters:
attrstr

attribute name

attr_type_or_typestype or tuple of type, optional

attribute type, by default None

Returns:
Any

attribute value

Raises:
InactiveObjectError

If any attribute other than "active? is queried when the object is not active.