Skip to content
YosoiDocs

PositiveU16

yosoi.policy.PositiveU16

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

Strict positive u16 integer; zero and numeric coercions are rejected.

Source: python/yosoi/policy.py:43