Return a string describing an instance via its InstanceState.
(state: InstanceState[Any])
| 354 | |
| 355 | |
| 356 | def state_str(state: InstanceState[Any]) -> str: |
| 357 | """Return a string describing an instance via its InstanceState.""" |
| 358 | |
| 359 | if state is None: |
| 360 | return "None" |
| 361 | else: |
| 362 | return "<%s at 0x%x>" % (state.class_.__name__, id(state.obj())) |
| 363 | |
| 364 | |
| 365 | def state_class_str(state: InstanceState[Any]) -> str: |
no outgoing calls
no test coverage detected