# DiffStats

> **Class** in `deepagents_code`

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

Line counts for a change, named so the pair cannot be swapped silently.

Keyword-only and frozen so that claim holds at construction as well as in
transit: a positional pair is exactly the transposition this type exists to
rule out, and the counts are read long after they are computed.

## Signature

```python
DiffStats(
    self,
    *,
    additions: int,
    deletions: int,
)
```

## Constructors

```python
__init__(
    self,
    *,
    additions: int,
    deletions: int,
) -> None
```

| Name | Type |
|------|------|
| `additions` | `int` |
| `deletions` | `int` |


## Properties

- `additions`
- `deletions`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/diff_utils.py#L59)