Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 498 for Annotated (0.04 sec)

  1. tests/test_union_forms.py

    from typing import Annotated, Union
    
    from fastapi import FastAPI, Form
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class UserForm(BaseModel):
        name: str
        email: str
    
    
    class CompanyForm(BaseModel):
        company_name: str
        industry: str
    
    
    @app.post("/form-union/")
    def post_union_form(data: Annotated[Union[UserForm, CompanyForm], Form()]):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py

    # Ref: https://github.com/fastapi/fastapi/issues/14454
    
    from typing import Annotated, Optional
    
    from fastapi import APIRouter, Depends, FastAPI, Security
    from fastapi.security import OAuth2AuthorizationCodeBearer
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    oauth2_scheme = OAuth2AuthorizationCodeBearer(
        authorizationUrl="authorize",
        tokenUrl="token",
        auto_error=True,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  3. docs/de/docs/python-types.md

    Seit Python 3.9 ist `Annotated` ein Teil der Standardbibliothek, Sie können es von `typing` importieren.
    
    {* ../../docs_src/python_types/tutorial013_py39.py hl[1,4] *}
    
    Python selbst macht nichts mit `Annotated`. Für Editoren und andere Tools ist der Typ immer noch `str`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.9K bytes
    - Viewed (1)
  4. tests/test_regex_deprecated_body.py

    from typing import Annotated
    
    import pytest
    from fastapi import FastAPI, Form
    from fastapi.exceptions import FastAPIDeprecationWarning
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from .utils import needs_py310
    
    
    def get_client():
        app = FastAPI()
        with pytest.warns(FastAPIDeprecationWarning):
    
            @app.post("/items/")
            async def read_items(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SinceAndIncubatingRulesKotlinTest.kt

                    newApi("Method", "SourceKt.wrap(java.util.Set,java.util.HashSet,java.util.LinkedHashSet)"),
                )
            }
    
            // new file-facade class can be annotated with @Incubating, members must be annotated with @since
            checkBinaryCompatible(
                v2 = {
                    withFile(
                        "kotlin/com/example/Source.kt",
                        """
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Jun 06 17:52:09 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  6. fastapi/_compat/shared.py

    import sys
    import types
    import typing
    import warnings
    from collections import deque
    from collections.abc import Mapping, Sequence
    from dataclasses import is_dataclass
    from typing import (
        Annotated,
        Any,
        Union,
    )
    
    from fastapi.types import UnionType
    from pydantic import BaseModel
    from pydantic.version import VERSION as PYDANTIC_VERSION
    from starlette.datastructures import UploadFile
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  7. .idea/inspectionProfiles/Gradle.xml

          </replaceConfiguration>
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Jun 26 21:49:47 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/dependencies/sub-dependencies.md

    //// tab | Python 3.9+
    
    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: Annotated[str, Depends(get_value, use_cache=False)]):
        return {"fresh_value": fresh_value}
    ```
    
    ////
    
    //// tab | Python 3.9+ nicht annotiert
    
    /// tip | Tipp
    
    Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
    ///
    
    ```Python hl_lines="1"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  9. docs/pt/docs/python-types.md

    Desde o Python 3.9, `Annotated` faz parte da biblioteca padrão, então você pode importá-lo de `typing`.
    
    {* ../../docs_src/python_types/tutorial013_py39.py hl[1,4] *}
    
    O Python em si não faz nada com este `Annotated`. E para editores e outras ferramentas, o tipo ainda é `str`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  10. docs/es/docs/python-types.md

    Desde Python 3.9, `Annotated` es parte de la standard library, así que puedes importarlo desde `typing`.
    
    {* ../../docs_src/python_types/tutorial013_py39.py hl[1,4] *}
    
    Python en sí no hace nada con este `Annotated`. Y para los editores y otras herramientas, el tipo sigue siendo `str`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.4K bytes
    - Viewed (1)
Back to top