budosystems.typehints.AttrsClass¶
- class AttrsClass¶
Bases:
ProtocolProtocol-ly way of identifying attrs classes (if needed for typehints).
Note
For general testing whether a class or object is an attrs use
attr.hasinstead ofisinstance(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)¶