# demopkg.compat

*module*

Backwards compatible aliases, without an `__all__`.

The public surface of this module is inferred: `legacy_name` and `LEGACY_LIMIT`
are public, `_shim` is private, and `Report` is an import (so it is only shown
when imported members are not filtered out).

[View source](https://github.com/ewels/starlight-pydocs/blob/main/fixtures/demopkg/src/demopkg/compat.py#L1-L1)

## demopkg.compat.LEGACY_LIMIT

*attribute* · *module attribute*

```python
LEGACY_LIMIT = 100
```

Largest report size the old API accepted.

[View source](https://github.com/ewels/starlight-pydocs/blob/main/fixtures/demopkg/src/demopkg/compat.py#L10-L10)

## demopkg.compat.legacy_name

*function*

```python
def legacy_name(report: Report) -> str
```

Return the name the old API would have used.

**Parameters**

- `report` (`Report`) — Report to name.

**Returns**

- (`str`) — The legacy name.

[View source](https://github.com/ewels/starlight-pydocs/blob/main/fixtures/demopkg/src/demopkg/compat.py#L14-L23)
