mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
17b5ff42c1
* renaming docs examples * tweaks
9 lines
237 B
Python
9 lines
237 B
Python
from __future__ import annotations
|
|
from typing import List # <-- List is defined in the module's global scope
|
|
from pydantic import BaseModel
|
|
|
|
def this_works():
|
|
class Model(BaseModel):
|
|
a: List[int]
|
|
print(Model(a=(1, 2)))
|