# flatten_run

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/callbacks/tracers/wandb/flatten_run)

Utility to flatten a nest run object into a list of runs.
:param run: The base run to flatten.
:return: The flattened list of runs.

## Signature

```python
flatten_run(
    run: Dict[str, Any],
) -> List[Dict[str, Any]]
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/d5ea8358933260ad48dd31f7f8076555c7b4885a/libs/community/langchain_community/callbacks/tracers/wandb.py#L68)