Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 741 - 750 of 993 for asdict (0.5 seconds)

  1. tests/test_union_body_discriminator_annotated.py

        class Cat(BaseModel):
            pet_type: str = "cat"
            meows: int
    
        class Dog(BaseModel):
            pet_type: str = "dog"
            barks: float
    
        def get_pet_type(v):
            assert isinstance(v, dict)
            return v.get("pet_type", "")
    
        Pet = Annotated[
            Union[Annotated[Cat, Tag("cat")], Annotated[Dog, Tag("dog")]],
            Discriminator(get_pet_type),
        ]
    
        app = FastAPI()
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  2. docs/es/docs/advanced/response-cookies.md

    Y luego puedes establecer cookies en ese objeto de response *temporal*.
    
    {* ../../docs_src/response_cookies/tutorial002_py39.py hl[1, 8:9] *}
    
    Y entonces puedes devolver cualquier objeto que necesites, como normalmente lo harías (un `dict`, un modelo de base de datos, etc).
    
    Y si declaraste un `response_model`, todavía se utilizará para filtrar y convertir el objeto que devolviste.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/Collections2.java

       *
       * {@snippet :
       * for (List<String> perm : orderedPermutations(asList("b", "c", "a"))) {
       *   println(perm);
       * }
       * // -> ["a", "b", "c"]
       * // -> ["a", "c", "b"]
       * // -> ["b", "a", "c"]
       * // -> ["b", "c", "a"]
       * // -> ["c", "a", "b"]
       * // -> ["c", "b", "a"]
       *
       * for (List<Integer> perm : orderedPermutations(asList(1, 2, 2, 1))) {
       *   println(perm);
       * }
       * // -> [1, 1, 2, 2]
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 22.6K bytes
    - Click Count (0)
  4. docs/uk/docs/features.md

    ### Валідація
    * Підтримка валідації для більшості (або всіх?) **типів даних Python**, зокрема:
        * JSON-об'єктів (`dict`).
        * JSON-списків (`list`) з визначенням типів елементів.
        * Рядків (`str`) із мінімальною та максимальною довжиною.
        * Чисел (`int`, `float`) з обмеженнями мінімальних та максимальних значень тощо.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  5. docs/ru/docs/tutorial/dependencies/index.md

    * Необязательный query-параметр `q` типа `str`.
    * Необязательный query-параметр `skip` типа `int`, по умолчанию `0`.
    * Необязательный query-параметр `limit` типа `int`, по умолчанию `100`.
    
    А затем просто возвращает `dict`, содержащий эти значения.
    
    /// info | Информация
    
    FastAPI добавил поддержку `Annotated` (и начал рекомендовать его использование) в версии 0.95.0.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 30 11:24:39 GMT 2025
    - 15.4K bytes
    - Click Count (1)
  6. fastapi/security/http.py

                scheme=scheme, description=description
            )
            self.scheme_name = scheme_name or self.__class__.__name__
            self.auto_error = auto_error
    
        def make_authenticate_headers(self) -> dict[str, str]:
            return {"WWW-Authenticate": f"{self.model.scheme.title()}"}
    
        def make_not_authenticated_error(self) -> HTTPException:
            return HTTPException(
                status_code=HTTP_401_UNAUTHORIZED,
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/Multimaps.java

       *     FIRST_LETTER_MULTIMAP.putAll('b', Arrays.asList('a', 'n', 'a', 'n', 'a'));
       *     FIRST_LETTER_MULTIMAP.putAll('a', Arrays.asList('p', 'p', 'l', 'e'));
       *     FIRST_LETTER_MULTIMAP.putAll('c', Arrays.asList('a', 'r', 'r', 'o', 't'));
       *     FIRST_LETTER_MULTIMAP.putAll('a', Arrays.asList('s', 'p', 'a', 'r', 'a', 'g', 'u', 's'));
       *     FIRST_LETTER_MULTIMAP.putAll('c', Arrays.asList('h', 'e', 'r', 'r', 'y'));
       * }
       * }
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 86.5K bytes
    - Click Count (0)
  8. docs/de/docs/advanced/response-headers.md

    {* ../../docs_src/response_headers/tutorial002_py39.py hl[1, 7:8] *}
    
    Anschließend können Sie wie gewohnt jedes gewünschte Objekt zurückgeben (ein `dict`, ein Datenbankmodell, usw.).
    
    Und wenn Sie ein `response_model` deklariert haben, wird es weiterhin zum Filtern und Konvertieren des von Ihnen zurückgegebenen Objekts verwendet.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.8K bytes
    - Click Count (2)
  9. docs/en/docs/advanced/response-headers.md

    And then you can set headers in that *temporal* response object.
    
    {* ../../docs_src/response_headers/tutorial002_py39.py hl[1, 7:8] *}
    
    And then you can return any object you need, as you normally would (a `dict`, a database model, etc).
    
    And if you declared a `response_model`, it will still be used to filter and convert the object you returned.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  10. src/main/resources/fess_label_ru.properties

    labels.data_config_details=Data Config Детали
    labels.dict_kuromoji_details=Dict Kuromoji Детали
    labels.dict_mapping_details=Dict Mapping Детали
    labels.dict_protwords_details=Dict Protwords Детали
    labels.dict_stemmeroverride_details=Dict Stemmeroverride Детали
    labels.dict_stopwords_details=Dict Stopwords Детали
    labels.dict_synonym_details=Dict Synonym Детали
    labels.duplicate_host_details=Duplicate Host Детали
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 60.2K bytes
    - Click Count (0)
Back to Top