facet-python 0.46.0

Generate Python type definitions from facet type metadata
Documentation
1
2
3
4
5
6
7
8
9
10
---
source: facet-python/src/lib.rs
expression: py
---
from __future__ import annotations
from typing import Required, TypedDict

class User(TypedDict, total=False):
    name: Required[str]
    age: Required[int]