We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcd86a5 commit 95cc6c7Copy full SHA for 95cc6c7
1 file changed
docs/intro/annotated-resources.rst
@@ -21,8 +21,8 @@ The annotated resource syntax offers many rich ways of representing your resourc
21
class Book(odin.AnnotatedResource):
22
title: str
23
author: Author
24
- genre: Optional[str] = odin.Options(max_length=255)
25
- num_pages: int = odin.Options(min_value=1)
+ genre: Annotated[str | None, odin.Options(max_length=255)]
+ num_pages: Annotated[int, odin.Options(min_value=1)]
26
27
28
0 commit comments