- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for names (0.23 sec)
-
docs/de/docs/tutorial/path-params-numeric-validations.md
Aber Sie können die Reihenfolge der Parameter ändern, den Query-Parameter ohne Defaultwert zuerst. Für **FastAPI** ist es nicht wichtig. Es erkennt die Parameter anhand ihres Namens, ihrer Typen, und ihrer Defaultwerte (`Query`, `Path`, usw.). Es kümmert sich nicht um die Reihenfolge. Sie können Ihre Funktion also so deklarieren: === "Python 3.8 nicht annotiert" !!! tip "Tipp"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 17:59:29 GMT 2024 - 10.2K bytes - Viewed (0) -
docs/en/docs/tutorial/path-params-numeric-validations.md
When you import `Query`, `Path` and others from `fastapi`, they are actually functions. That when called, return instances of classes of the same name. So, you import `Query`, which is a function. And when you call it, it returns an instance of a class also named `Query`. These functions are there (instead of just using the classes directly) so that your editor doesn't mark errors about their types.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 9.1K bytes - Viewed (0)