budosystems.typehints.DataClass

class DataClass

Bases: Protocol

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

Note

For general testing whether a class or object is a dataclass use dataclasses.is_dataclass instead of isinstance(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)