- Sort Score
- Num 10 results
- Language All
Results 1081 - 1090 of 2,994 for class (0.02 seconds)
-
docs_src/path_operation_advanced_configuration/tutorial004_py310.py
from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None tags: set[str] = set() @app.post("/items/", response_model=Item, summary="Create an item") async def create_item(item: Item): """ Create an item with all the information: - **name**: each item must have a name
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 674 bytes - Click Count (0) -
docs_src/path_operation_configuration/tutorial004_py39.py
from typing import Union from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None tags: set[str] = set() @app.post("/items/", response_model=Item, summary="Create an item") async def create_item(item: Item): """ Create an item with all the information:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 676 bytes - Click Count (0) -
tests/test_response_model_invalid.py
import pytest from fastapi import FastAPI from fastapi.exceptions import FastAPIError class NonPydanticModel: pass def test_invalid_response_model_raises(): with pytest.raises(FastAPIError): app = FastAPI() @app.get("/", response_model=NonPydanticModel) def read_root(): pass # pragma: nocover def test_invalid_response_model_sub_type_raises():Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.1K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtilsTest.java
/** * Unit tests for the {@link ModelVersionUtils} utility class. * Tests model version detection, validation, upgrade logic, and namespace operations. */ @DisplayName("ModelVersionUtils") class ModelVersionUtilsTest { @Nested @DisplayName("Model Version Detection") class ModelVersionDetectionTests { @TestCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 19.6K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/extension/model/io/xpp3/CoreExtensionsXpp3Writer.java
import org.codehaus.plexus.util.xml.pull.XmlSerializer; /** * Class CoreExtensionsXpp3Writer. * * @deprecated use {@code org.apache.maven.cling.internal.extension.io.CoreExtensionsStaxWriter} */ @Deprecated @SuppressWarnings("all") public class CoreExtensionsXpp3Writer { // --------------------------/ // - Class/Member Variables -/ // --------------------------/ /**Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Oct 27 13:24:03 GMT 2025 - 6.7K bytes - Click Count (0) -
docs/en/docs/tutorial/middleware.md
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 4.1K bytes - Click Count (0) -
docs/en/docs/tutorial/security/get-current-user.md
But you are not restricted to using some specific data model, class or type. Do you want to have an `id` and `email` and not have any `username` in your model? Sure. You can use these same tools. Do you want to just have a `str`? Or just a `dict`? Or a database class model instance directly? It all works the same way.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 09:15:41 GMT 2025 - 4K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilterTest.java
import static org.mockito.Mockito.when; class ExclusionArtifactFilterTest { private Artifact artifact; private Artifact artifact2; @BeforeEach void setup() { artifact = mock(Artifact.class); when(artifact.getGroupId()).thenReturn("org.apache.maven"); when(artifact.getArtifactId()).thenReturn("maven-core"); artifact2 = mock(Artifact.class);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 6.7K bytes - Click Count (0) -
docs/es/docs/how-to/authentication-error-status-code.md
Pero si por alguna razón tus clientes dependen del comportamiento anterior, puedes volver a él sobrescribiendo el método `make_not_authenticated_error` en tus clases de seguridad.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:16:35 GMT 2025 - 1.3K bytes - Click Count (0) -
docs/zh/docs/deployment/manually.md
* <a href="https://www.uvicorn.dev/" class="external-link" target="_blank">Uvicorn</a>:高性能 ASGI 服务器。 * <a href="https://hypercorn.readthedocs.io/" class="external-link" target="_blank">Hypercorn</a>:与 HTTP/2 和 Trio 等兼容的 ASGI 服务器。 * <a href="https://github.com/django/daphne" class="external-link" target="_blank">Daphne</a>:为 Django Channels 构建的 ASGI 服务器。
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 6.7K bytes - Click Count (0)