# format_shadowed_dcode_warning

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/update_check/format_shadowed_dcode_warning)

Render a user-facing warning for a shadowed-dcode situation.

Shared by the `/update` slash command, the update-notification "Install
now" action, and the pre-launch auto-update path so the wording stays
consistent.

## Signature

```python
format_shadowed_dcode_warning(
    shadow: ShadowedDcode,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `shadow` | `ShadowedDcode` | Yes | The shadowing-binary description returned by `detect_shadowed_dcode`. |

## Returns

`str`

A plain-text, multi-line warning suitable for either the TUI message
stream or a Rich `console.print`.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e14e0adcbe78565ed3650e7f24b2a775d5437d25/libs/code/deepagents_code/update_check.py#L1635)