Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for tutorial003_01_py310 (0.64 sec)

  1. tests/test_tutorial/test_response_model/test_tutorial003_01.py

    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial003_01_py39"),
            pytest.param("tutorial003_01_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)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/response-model.md

    And in those cases, we can use classes and inheritance to take advantage of function **type annotations** to get better support in the editor and tools, and still get the FastAPI **data filtering**.
    
    {* ../../docs_src/response_model/tutorial003_01_py310.py hl[7:10,13:14,18] *}
    
    With this, we get tooling support, from editors and mypy as this code is correct in terms of types, but we also get the data filtering from FastAPI.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_01_py310.py hl[7:10,13:14,18] *}
    
    Com isso, temos suporte de ferramentas, de editores e mypy, pois este código está correto em termos de tipos, mas também obtemos a filtragem de dados do FastAPI.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_01_py310.py hl[7:10,13:14,18] *}
    
    Так мы получаем поддержку инструментов (редакторы, mypy) — код корректен с точки зрения типов — и одновременно получаем фильтрацию данных от FastAPI.
    
    Как это работает? Давайте разберёмся. 🤓
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_01_py310.py hl[7:10,13:14,18] *}
    
    Damit erhalten wir Tool-Unterstützung, vom Editor und mypy, da dieser Code hinsichtlich der Typen korrekt ist, aber wir erhalten auch die Datenfilterung von FastAPI.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_01_py310.py hl[7:10,13:14,18] *}
    
    Con esto, obtenemos soporte de las herramientas, de los editores y mypy ya que este código es correcto en términos de tipos, pero también obtenemos el filtrado de datos de FastAPI.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.7K bytes
    - Viewed (0)
  7. docs_src/response_model/tutorial003_01_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
    - 349 bytes
    - Viewed (0)
  8. docs_src/security/tutorial003_an_py310.py

    Motov Yurii <******@****.***> 1764010986 +0100
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 24 19:03:06 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  9. docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py

    Sebastián Ramírez <******@****.***> 1760201154 +0200
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 16:45:54 UTC 2025
    - 407 bytes
    - Viewed (0)
  10. pyproject.toml

        "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)
Back to top