Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for malloc (0.04 sec)

  1. fastapi/openapi/models.py

            ) -> Mapping[str, Any]:
                return with_info_plain_validator_function(cls._validate)
    
    
    class BaseModelWithConfig(BaseModel):
        model_config = {"extra": "allow"}
    
    
    class Contact(BaseModelWithConfig):
        name: Optional[str] = None
        url: Optional[AnyUrl] = None
        email: Optional[EmailStr] = None
    
    
    class License(BaseModelWithConfig):
        name: str
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. tests/test_forms_single_model.py

    
    class FormModelExtraAllow(BaseModel):
        param: str
    
        model_config = {"extra": "allow"}
    
    
    @app.post("/form/")
    def post_form(user: Annotated[FormModel, Form()]):
        return user
    
    
    @app.post("/form-extra-allow/")
    def post_form_extra_allow(params: Annotated[FormModelExtraAllow, Form()]):
        return params
    
    
    client = TestClient(app)
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  3. fastapi/param_functions.py

        allow_inf_nan: Annotated[
            Union[bool, None],
            Doc(
                """
                Allow `inf`, `-inf`, `nan`. Only applicable to numbers.
                """
            ),
        ] = _Unset,
        max_digits: Annotated[
            Union[int, None],
            Doc(
                """
                Maximum number of allow digits for strings.
                """
            ),
        ] = _Unset,
        decimal_places: Annotated[
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 63K bytes
    - Viewed (0)
  4. tests/test_compat.py

        # TODO: in theory this would allow declaring types that could be lists of bytes
        # to be read from files and other types, but I'm not even sure it's a good idea
        # 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
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  5. docs/de/llm-prompt.md

            "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)
  6. fastapi/_compat/v2.py

                exclude_defaults=exclude_defaults,
                exclude_none=exclude_none,
            )
    
        def __hash__(self) -> int:
            # Each ModelField is unique for our purposes, to allow making a dict from
            # ModelField to its JSON Schema.
            return id(self)
    
    
    def _has_computed_fields(field: ModelField) -> bool:
        computed_fields = field._type_adapter.core_schema.get("schema", {}).get(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  7. fastapi/routing.py

                    This is much simpler (less smart) than `response_model_exclude_unset`
                    and `response_model_exclude_defaults`. You probably want to use one of
                    those two instead of this one, as those allow returning `None` values
                    when it makes sense.
    
                    Read more about it in the
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  8. scripts/translate.py

            Hallo
            ////
            »»»
    
        Source (English) – Here there is nothing to translate in the tab title:
    
            «««
            //// tab | Linux, macOS, Windows Bash
            Hello again
            ////
            »»»
    
        Result (German):
    
            «««
            //// tab | Linux, macOS, Windows Bash
            Hallo wieder
            ////
            »»»
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:05:53 UTC 2025
    - 34.1K bytes
    - Viewed (0)
  9. docs/en/docs/release-notes.md

    ## 0.117.0
    
    ### Features
    
    * ✨  Allow `None` as return type for bodiless responses. PR [#9425](https://github.com/fastapi/fastapi/pull/9425) by [@hofrob](https://github.com/hofrob).
    * ✨ Allow array values for OpenAPI schema `type` field. PR [#13639](https://github.com/fastapi/fastapi/pull/13639) by [@sammasak](https://github.com/sammasak).
    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