Attributes of obj, including the ones a slotted dataclass keeps outside
__dict__, so they get anonymized rather than falling through to repr.
Source code in vllm/logging_utils/dump_input.py
| def _object_items(obj) -> dict[str, object]:
"""Attributes of `obj`, including the ones a slotted dataclass keeps outside
`__dict__`, so they get anonymized rather than falling through to `repr`."""
items: dict[str, object] = {}
if _is_dataclass_instance(obj):
items = {f.name: getattr(obj, f.name, None) for f in dataclasses.fields(obj)}
return {**items, **getattr(obj, "__dict__", {})}
|