Browse Source

✏ Fix typo/bug in inline code example in `docs/en/docs/tutorial/query-params-str-validations.md` (#9273)

pull/9394/head
tim-habitat 2 years ago
committed by GitHub
parent
commit
08ba3a98a3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/en/docs/tutorial/query-params-str-validations.md

2
docs/en/docs/tutorial/query-params-str-validations.md

@ -199,7 +199,7 @@ Instead use the actual default value of the function parameter. Otherwise, it wo
For example, this is not allowed:
```Python
q: Annotated[str Query(default="rick")] = "morty"
q: Annotated[str, Query(default="rick")] = "morty"
```
...because it's not clear if the default value should be `"rick"` or `"morty"`.

Loading…
Cancel
Save