Returns True if obj is an instance of a dataclass.
(obj)
| 1462 | |
| 1463 | |
| 1464 | def _is_dataclass_instance(obj): |
| 1465 | """Returns True if obj is an instance of a dataclass.""" |
| 1466 | return hasattr(type(obj), _FIELDS) |
| 1467 | |
| 1468 | |
| 1469 | def is_dataclass(obj): |
no outgoing calls
no test coverage detected
searching dependent graphs…