budosystems.typehints.DataClass¶
- class DataClass¶
Bases:
ProtocolProtocol-ly way of identifying dataclasses (if needed for typehints).
Note
For general testing whether a class or object is a dataclass use
dataclasses.is_dataclassinstead ofisinstance(o, DataClass).assert isinstance(o, DataClass)can be used to quell static checkers if you need to use the attributes defined here.- __init__(*args, **kwargs)¶