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