- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for fun (0.91 sec)
-
docs/en/docs/tutorial/query-params-str-validations.md
```Python q: Annotated[Union[str, None]] = None ``` Both of those versions mean the same thing, `q` is a parameter that can be a `str` or `None`, and by default, it is `None`. Now let's jump to the fun stuff. 🎉 ## Add `Query` to `Annotated` in the `q` parameter Now that we have this `Annotated` where we can put more metadata, add `Query` to it, and set the parameter `max_length` to 50: === "Python 3.10+"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 25.7K bytes - Viewed (0)