> ## Documentation Index
> Fetch the complete documentation index at: https://typewall.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Python Typing

> Derive schemas from annotations, TypedDict, and dataclasses

`schema_from_type()` derives schemas from supported standard annotations, `TypedDict`, and dataclasses.

```python theme={null}
from dataclasses import dataclass

from typewall import schema_from_type

@dataclass
class User:
    name: str
    age: int = 18

UserSchema = schema_from_type(User)
assert UserSchema.parse({"name": "Ada"}) == User(name="Ada")
```

> [!NOTE]
>
> MyPy and Pyright fixtures verify the public generic output contract.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.