Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for orResult (0.07 sec)

  1. tests/test_compat.py

        field_info = FieldInfo(annotation=Union[list[str], None])
        field = v2.ModelField(name="items", field_info=field_info)
        result = v2.serialize_sequence_value(field=field, value=["a", "b", "c"])
        assert result == ["a", "b", "c"]
        assert isinstance(result, list)
    
    
    @needs_py310
    def test_serialize_sequence_value_with_optional_list_pipe_union():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. scripts/translate.py

        »»»
    
    Some examples in Spanish:
    
        Source:
    
            «««
            /// tip
            »»»
    
        Result:
    
            «««
            /// tip | Consejo
            »»»
    
        Source:
    
            «««
            /// details | Preview
            »»»
    
        Result:
    
            «««
            /// details | Vista previa
            »»»
    
    
    ### Tab blocks
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:05:53 UTC 2025
    - 34.1K bytes
    - Viewed (0)
  3. fastapi/openapi/utils.py

            if isinstance(route, routing.APIRoute):
                result = get_openapi_path(
                    route=route,
                    operation_ids=operation_ids,
                    model_name_map=model_name_map,
                    field_mapping=field_mapping,
                    separate_input_output_schemas=separate_input_output_schemas,
                )
                if result:
                    path, security_schemes, path_definitions = result
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  4. docs/de/llm-prompt.md

    Examples:
    
        Source (English):
    
            «««
            "Hello world"
            “Hello Universe”
            "He said: 'Hello'"
            “my name is ‘Nils’”
            `"__main__"`
            `"items"`
            »»»
    
        Result (German):
    
            «««
            „Hallo Welt“
            „Hallo Universum“
            „Er sagte: ‚Hallo‘“
            „Mein Name ist ‚Nils‘“
            `"__main__"`
            `"items"`
            »»»
    
    
    ### Ellipsis
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 09:39:53 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  5. fastapi/encoders.py

                the output should use the alias names (when provided) or the Python
                attribute names. In an API, if you set an alias, it's probably because you
                want to use it in the result, so you probably want to leave this set to
                `True`.
                """
            ),
        ] = True,
        exclude_unset: Annotated[
            bool,
            Doc(
                """
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  6. fastapi/dependencies/utils.py

                results: list[Union[bytes, str]] = []
    
                async def process_fn(
                    fn: Callable[[], Coroutine[Any, Any, Any]],
                ) -> None:
                    result = await fn()
                    results.append(result)  # noqa: B023
    
                async with anyio.create_task_group() as tg:
                    for sub_value in value:
                        tg.start_soon(process_fn, sub_value.read)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 37.6K bytes
    - Viewed (3)
  7. docs/en/docs/release-notes.md

        ml_models.clear()
    
    
    app = FastAPI(lifespan=lifespan)
    
    
    @app.get("/predict")
    async def predict(x: float):
        result = ml_models["answer_to_everything"](x)
        return {"result": result}
    ```
    
    **Note**: This is the recommended way going forward, instead of using `startup` and `shutdown` events.
    
    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