mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
11 lines
163 B
Python
11 lines
163 B
Python
from __future__ import annotations
|
|
from typing import List
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class Model(BaseModel):
|
|
a: List[int]
|
|
|
|
|
|
print(Model(a=('1', 2, 3)))
|