Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Measure (0.4 sec)

  1. .pre-commit-config.yaml

            entry: uv run ./scripts/docs.py update-languages
            files: ^docs/.*|scripts/docs\.py$
            pass_filenames: false
    
          - id: ensure-non-translated
            language: unsupported
            name: ensure non-translated files are not modified
            entry: uv run ./scripts/docs.py ensure-non-translated
            files: ^docs/(?!en/).*|^scripts/docs\.py$
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 11:36:58 UTC 2025
    - 1.8K bytes
    - Viewed (1)
  2. tests/test_compat.py

        # to support it as a first class "feature"
        assert is_bytes_sequence_annotation(Union[list[str], list[bytes]])
    
    
    def test_is_uploadfile_sequence_annotation():
        # For coverage
        # TODO: in theory this would allow declaring types that could be lists of UploadFile
        # and other types, but I'm not even sure it's a good idea to support it as a first
        # class "feature"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. docs/zh/llm-prompt.md

    ### Headings
    
    1) Follow existing Simplified Chinese heading style (short and descriptive).
    2) Do not add trailing punctuation to headings.
    3) If a heading contains only the name of a FastAPI feature, do not translate it.
    
    ### Quotes and punctuation
    
    1) Keep punctuation style consistent with existing Simplified Chinese docs (they often mix English terms like “FastAPI” with Chinese text).
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:49:08 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  4. tests/test_get_model_definitions_formfeed_escape.py

                "line_1": "123 Main St",
                "city": "Anytown",
                "state_province": "CA",
            },
        }
    
    
    def test_openapi_schema(client: TestClient):
        """
        Sanity check to ensure our app's openapi schema renders as we expect
        """
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == snapshot(
            {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. fastapi/param_functions.py

                if the dependency is needed by several dependencies), the value will be
                re-used for the rest of the request.
    
                Set `use_cache` to `False` to disable this behavior and ensure the
                dependency is called again (if declared more than once) in the same request.
                """
            ),
        ] = True,
        scope: Annotated[
            Union[Literal["function", "request"], None],
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 63K bytes
    - Viewed (0)
  6. docs/en/docs/index.md

    <div class="termy">
    
    ```console
    $ pip install "fastapi[standard]"
    
    ---> 100%
    ```
    
    </div>
    
    **Note**: Make sure you put `"fastapi[standard]"` in quotes to ensure it works in all terminals.
    
    ## Example { #example }
    
    ### Create it { #create-it }
    
    Create a file `main.py` with:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 25 11:01:37 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  7. README.md

    <div class="termy">
    
    ```console
    $ pip install "fastapi[standard]"
    
    ---> 100%
    ```
    
    </div>
    
    **Note**: Make sure you put `"fastapi[standard]"` in quotes to ensure it works in all terminals.
    
    ## Example
    
    ### Create it
    
    Create a file `main.py` with:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 25 11:01:37 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  8. docs/en/docs/release-notes.md

    
    app = FastAPI()
    
    
    @app.post("/items/", response_model=ItemV2)
    def create_item(item: Item):
        return {"title": item.name, "summary": item.description}
    ```
    
    Adding this feature was a big effort with the main objective of making it easier for the few applications still stuck in Pydantic v1 to migrate to Pydantic v2.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top