Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for instants (0.08 sec)

  1. tests/test_jsonable_encoder.py

            dt_field: safe_datetime
    
        instance = MyDict(dt_field=safe_datetime.now())
    
        encoded_instance = jsonable_encoder(
            instance, custom_encoder={safe_datetime: lambda o: o.strftime("%H:%M:%S")}
        )
        assert encoded_instance["dt_field"] == instance["dt_field"].strftime("%H:%M:%S")
    
        encoded_instance = jsonable_encoder(
            instance, custom_encoder={datetime: lambda o: o.strftime("%H:%M:%S")}
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  2. fastapi/openapi/utils.py

        get_flat_dependant,
        get_flat_params,
        get_validation_alias,
    )
    from fastapi.encoders import jsonable_encoder
    from fastapi.exceptions import FastAPIDeprecationWarning
    from fastapi.openapi.constants import METHODS_WITH_BODY, REF_PREFIX
    from fastapi.openapi.models import OpenAPI
    from fastapi.params import Body, ParamTypes
    from fastapi.responses import Response
    from fastapi.types import ModelNameMap
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  3. fastapi/_compat/v2.py

    from enum import Enum
    from functools import lru_cache
    from typing import (
        Annotated,
        Any,
        Union,
        cast,
    )
    
    from fastapi._compat import shared
    from fastapi.openapi.constants import REF_TEMPLATE
    from fastapi.types import IncEx, ModelNameMap, UnionType
    from pydantic import BaseModel, ConfigDict, Field, TypeAdapter, create_model
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  4. scripts/translate.py

    Example:
    
        Source (English):
    
            «««
            <abbr title="Object Relational Mapper: a fancy term for a library where some classes represent SQL tables and instances represent rows in those tables">ORM</abbr>
            »»»
    
        Result (German):
    
            «««
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:05:53 UTC 2025
    - 34.1K bytes
    - Viewed (0)
  5. docs/en/docs/release-notes.md

        * This can solve nuanced errors when using middlewares. Before Starlette `0.24.0`, a new instance of each middleware class would be created when a new middleware was added. That normally was not a problem, unless the middleware class expected to be created only once, with only one instance, that happened in some cases. This upgrade would solve those cases (thanks [@adriangb](https://github.com/adriangb)! Starlette PR [#2017](https://git...
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
  6. fastapi/routing.py

                    type_=self.response_model,
                    mode="serialization",
                )
                # Create a clone of the field, so that a Pydantic submodel is not returned
                # as is just because it's an instance of a subclass of a more limited class
                # e.g. UserInDB (containing hashed_password) could be a subclass of User
                # that doesn't have the hashed_password. But because it's a subclass, it
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
Back to top