Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 223 for tutorial002_an (0.12 sec)

  1. tests/test_tutorial/test_request_files/test_tutorial002_an.py

    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from docs_src.request_files.tutorial002_an import app
    
    client = TestClient(app)
    
    
    def test_post_form_no_body():
        response = client.post("/files/")
        assert response.status_code == 422, response.text
        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "missing",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_header_param_models/test_tutorial002.py

    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002", marks=needs_pydanticv2),
            pytest.param("tutorial002_py310", marks=[needs_py310, needs_pydanticv2]),
            pytest.param("tutorial002_an", marks=needs_pydanticv2),
            pytest.param("tutorial002_an_py39", marks=[needs_py39, needs_pydanticv2]),
            pytest.param("tutorial002_an_py310", marks=[needs_py310, needs_pydanticv2]),
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_query_param_models/test_tutorial002.py

            pytest.param("tutorial002_py39", marks=[needs_py39, needs_pydanticv2]),
            pytest.param("tutorial002_py310", marks=[needs_py310, needs_pydanticv2]),
            pytest.param("tutorial002_an", marks=needs_pydanticv2),
            pytest.param("tutorial002_an_py39", marks=[needs_py39, needs_pydanticv2]),
            pytest.param("tutorial002_an_py310", marks=[needs_py310, needs_pydanticv2]),
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/query-params-str-validations.md

    В версиях Python ниже Python 3.9 `Annotation` импортируется из `typing_extensions`.
    
    Эта библиотека будет установлена вместе с FastAPI.
    
    ```Python hl_lines="3-4"
    {!> ../../docs_src/query_params_str_validations/tutorial002_an.py!}
    ```
    
    ////
    
    ## `Annotated` как тип для query-параметра `q`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/request-files.md

    ```Python hl_lines="10  15"
    {!> ../../docs_src/request_files/tutorial002_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="11  16"
    {!> ../../docs_src/request_files/tutorial002_an.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+ non-Annotated
    
    /// tip
    
    Prefer to use the `Annotated` version if possible.
    
    ///
    
    ```Python hl_lines="8  13"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/query-params-str-validations.md

    In Versionen unter Python 3.9 importieren Sie `Annotated` von `typing_extensions`.
    
    Es wird bereits mit FastAPI installiert sein.
    
    ```Python hl_lines="3-4"
    {!> ../../docs_src/query_params_str_validations/tutorial002_an.py!}
    ```
    
    ////
    
    /// info
    
    FastAPI unterstützt (und empfiehlt die Verwendung von) `Annotated` seit Version 0.95.0.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/background-tasks.md

    ```Python hl_lines="13  15  22  25"
    {!> ../../docs_src/background_tasks/tutorial002_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="14  16  23  26"
    {!> ../../docs_src/background_tasks/tutorial002_an.py!}
    ```
    
    ////
    
    //// tab | Python 3.10+ 没Annotated
    
    /// tip
    
    尽可能选择使用 `Annotated` 的版本。
    
    ///
    
    ```Python hl_lines="11  13  20  23"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/request-files.md

    ```Python hl_lines="10  15"
    {!> ../../docs_src/request_files/tutorial002_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.6+
    
    ```Python hl_lines="11  16"
    {!> ../../docs_src/request_files/tutorial002_an.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+ без Annotated
    
    /// tip | "Подсказка"
    
    Предпочтительнее использовать версию с аннотацией, если это возможно.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/background-tasks.md

    ```Python hl_lines="13  15  22  25"
    {!> ../../docs_src/background_tasks/tutorial002_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="14  16  23  26"
    {!> ../../docs_src/background_tasks/tutorial002_an.py!}
    ```
    
    ////
    
    //// tab | Python 3.10+ nicht annotiert
    
    /// tip | "Tipp"
    
    Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
    ///
    
    ```Python hl_lines="11  13  20  23"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/request-files.md

    ```Python hl_lines="10  15"
    {!> ../../docs_src/request_files/tutorial002_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="11  16"
    {!> ../../docs_src/request_files/tutorial002_an.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+ nicht annotiert
    
    /// tip | "Tipp"
    
    Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
    ///
    
    ```Python hl_lines="8  13"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top