Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 83 for tutorial003_04_py310 (1.1 sec)

  1. docs_src/response_model/tutorial003_04_py310.py

    Sebastián Ramírez <******@****.***> 1673367767 +0400
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Jan 10 16:22:47 UTC 2023
    - 352 bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. docs/uk/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: Tue Jun 24 19:14:01 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. docs_src/response_model/tutorial003_05_py310.py

    Sebastián Ramírez <******@****.***> 1673367767 +0400
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Jan 10 16:22:47 UTC 2023
    - 373 bytes
    - Viewed (0)
Back to top