Skip to content
YosoiDocs

U16

yosoi.policy.U16

U16 = Annotated[int, Field(strict=True, ge=0, le=(1 << 16) - 1)]

Strict integer from zero through the u16 maximum. Numeric strings, booleans, and floats are not coerced.

Source: python/yosoi/policy.py:35