The identity and contents of `value` and of everything inside it.
(value: object)
| 678 | |
| 679 | |
| 680 | def layout(value: object) -> object: |
| 681 | """The identity and contents of `value` and of everything inside it.""" |
| 682 | contents = value |
| 683 | if is_mapping(value): |
| 684 | contents = [(key, layout(item)) for key, item in value.items()] |
| 685 | elif is_sequence(value) and not isinstance(value, str): |
| 686 | contents = [layout(item) for item in value] |
| 687 | return id(value), type(value), contents |
| 688 | |
| 689 | |
| 690 | @pytest.mark.parametrize( |
no test coverage detected