Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for tutorial003_04_py310 (0.09 sec)

  1. tests/test_tutorial/test_response_model/test_tutorial003_04.py

    import importlib
    
    import pytest
    from fastapi.exceptions import FastAPIError
    
    from ...utils import needs_py310
    
    
    @pytest.mark.parametrize(
        "module_name",
        [
            pytest.param("tutorial003_04_py39"),
            pytest.param("tutorial003_04_py310", marks=needs_py310),
        ],
    )
    def test_invalid_response_model(module_name: str) -> None:
        with pytest.raises(FastAPIError):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 453 bytes
    - Viewed (0)
  2. pyproject.toml

        "docs_src",
        "tests",
        "fastapi"
    ]
    relative_files = true
    context = '${CONTEXT}'
    dynamic_context = "test_function"
    omit = [
        "docs_src/response_model/tutorial003_04_py39.py",
        "docs_src/response_model/tutorial003_04_py310.py",
        "docs_src/dependencies/tutorial008_an_py39.py",  # difficult to mock
        "docs_src/dependencies/tutorial013_an_py310.py",  # temporary code example?
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_04_py310.py hl[8] *}
    
    ...this fails because the type annotation is not a Pydantic type and is not just a single `Response` class or subclass, it's a union (any of the two) between a `Response` and a `dict`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_04_py310.py hl[8] *}
    
    ...isso falha porque a anotação de tipo não é um tipo Pydantic e não é apenas uma única classe ou subclasse `Response`, é uma união (qualquer uma das duas) entre um `Response` e ​​um `dict`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_04_py310.py hl[8] *}
    
    ...это не сработает, потому что аннотация типа не является типом Pydantic и это не единственный класс `Response` или его подкласс, а объединение (`union`) из `Response` и `dict`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_04_py310.py hl[8] *}
    
    ... das scheitert, da die Typannotation kein Pydantic-Typ ist, und auch keine einzelne `Response`-Klasse, oder -Unterklasse, es ist eine Union (eines von beiden) von `Response` und `dict`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_04_py310.py hl[8] *}
    
    ...esto falla porque la anotación de tipo no es un tipo de Pydantic y no es solo una sola clase `Response` o subclase, es una unión (cualquiera de los dos) entre una `Response` y un `dict`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.7K bytes
    - Viewed (0)
  8. docs_src/response_model/tutorial003_04_py39.py

    Sebastián Ramírez <******@****.***> 1766004103 -0800
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 384 bytes
    - Viewed (0)
  9. docs/es/docs/tutorial/security/simple-oauth2.md

    ### `OAuth2PasswordRequestForm` { #oauth2passwordrequestform }
    
    Primero, importa `OAuth2PasswordRequestForm`, y úsalo como una dependencia con `Depends` en la *path operation* para `/token`:
    
    {* ../../docs_src/security/tutorial003_an_py310.py hl[4,78] *}
    
    `OAuth2PasswordRequestForm` es una dependencia de clase que declara un body de formulario con:
    
    * El `username`.
    * El `password`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_response_model/test_tutorial003_05.py

    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial003_05_py39"),
            pytest.param("tutorial003_05_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.response_model.{request.param}")
    
        client = TestClient(mod.app)
        return client
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.8K bytes
    - Viewed (0)
Back to top