facet-python 0.50.0-rc.1

Generate Python type definitions from facet type metadata
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
source: facet-python/src/lib.rs
expression: py
---
class Dims(TypedDict, total=False):
    # Width in pixels
    width: Required[int]
    # Height in pixels
    height: Required[int]

class Image(TypedDict, total=False):
    # Width in pixels
    width: Required[int]
    # Height in pixels
    height: Required[int]
    path: Required[str]