- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for generic (0.19 sec)
-
tests/test_generic_parameterless_depends.py
@app.get("/a") async def a(dep: Dep[A]): return {"cls": dep.__class__.__name__} @app.get("/b") async def b(dep: Dep[B]): return {"cls": dep.__class__.__name__} client = TestClient(app) def test_generic_parameterless_depends(): response = client.get("/a") assert response.status_code == 200, response.text assert response.json() == {"cls": "A"} response = client.get("/b")
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:52:56 GMT 2024 - 1.8K bytes - Viewed (0) -
docs/tr/docs/python-types.md
#### Generic tipler Köşeli parantez içinde tip parametreleri alan bu türler, örneğin: * `List` * `Tuple` * `Set` * `Dict` * `Optional` * ...and others. **Generic types** yada **Generics** olarak adlandırılır. ### Tip olarak Sınıflar Bir değişkenin tipini bir sınıf ile bildirebilirsiniz.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 9.7K bytes - Viewed (0) -
fastapi/exceptions.py
RequestErrorModel: Type[BaseModel] = create_model("Request") WebSocketErrorModel: Type[BaseModel] = create_model("WebSocket") class FastAPIError(RuntimeError): """ A generic, FastAPI-specific error. """ class ValidationException(Exception): def __init__(self, errors: Sequence[Any]) -> None: self._errors = errors def errors(self) -> Sequence[Any]:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 4.9K bytes - Viewed (0) -
docs/en/docs/tutorial/path-params.md
```Python hl_lines="17" {!../../../docs_src/path_params/tutorial005.py!} ``` #### Get the *enumeration value* You can get the actual value (a `str` in this case) using `model_name.value`, or in general, `your_enum_member.value`: ```Python hl_lines="20" {!../../../docs_src/path_params/tutorial005.py!} ``` !!! tip You could also access the value `"lenet"` with `ModelName.lenet.value`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.1K bytes - Viewed (0) -
docs/en/docs/deployment/manually.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 9.2K bytes - Viewed (0) -
docs/zh/docs/how-to/general.md
Bill Zhong <******@****.***> 1713829269 -0230
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 22 23:41:09 GMT 2024 - 2.1K bytes - Viewed (0) -
docs/de/docs/how-to/general.md
Nils Lindemann <******@****.***> 1711822722 +0100
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:18:42 GMT 2024 - 2.9K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-models.md
If you don't know, you will learn what a "password hash" is in the [security chapters](security/simple-oauth2.md#password-hashing){.internal-link target=_blank}. ## Multiple models Here's a general idea of how the models could look like with their password fields and the places where they are used: === "Python 3.10+" ```Python hl_lines="7 9 14 20 22 27-28 31-33 38-39"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.7K bytes - Viewed (1) -
docs/en/mkdocs.yml
- deployment/manually.md - deployment/concepts.md - deployment/cloud.md - deployment/server-workers.md - deployment/docker.md - How To - Recipes: - how-to/index.md - how-to/general.md - how-to/graphql.md - how-to/custom-request-and-route.md - how-to/conditional-openapi.md - how-to/extending-openapi.md - how-to/separate-openapi-schemas.md
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 9.1K bytes - Viewed (0) -
docs/es/docs/tutorial/path-params.md
```Python hl_lines="17" {!../../../docs_src/path_params/tutorial005.py!} ``` #### Obtén el *enumeration value* Puedes obtener el valor exacto (un `str` en este caso) usando `model_name.value`, o en general, `your_enum_member.value`: ```Python hl_lines="20" {!../../../docs_src/path_params/tutorial005.py!} ``` !!! tip "Consejo" También podrías obtener el valor `"lenet"` con `ModelName.lenet.value`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.4K bytes - Viewed (0)