budosystems.typehints.AttrsClass

class AttrsClass

Bases: Protocol

Protocol-ly way of identifying attrs classes (if needed for typehints).

Note

For general testing whether a class or object is an attrs use attr.has instead of isinstance(o, DataClass).

assert isinstance(o, AttrsClass) can be used to quell static checkers if you need to use the attributes defined here.

__init__(*args, **kwargs)