verify
Class info¶
🛈 DocStrings¶
verify_type
¶
Verify that data matches the expected type using pydantic.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
Any
|
Data to verify |
required |
type_hint
|
type[T]
|
Type to verify against (including TypedDict) |
required |
Returns:
| Type | Description |
|---|---|
T
|
The validated data |
Raises:
| Type | Description |
|---|---|
TypeError
|
If validation fails |