Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 197 for idct (0.02 sec)

  1. docs/ru/docs/tutorial/extra-models.md

    В Pydantic v1 метод назывался `.dict()`, в Pydantic v2 он помечен как устаревший (но всё ещё поддерживается) и переименован в `.model_dump()`.
    
    В примерах здесь используется `.dict()` для совместимости с Pydantic v1, но если вы используете Pydantic v2, следует использовать `.model_dump()`.
    
    ///
    
    ### Про `**user_in.dict()` { #about-user-in-dict }
    
    #### `.dict()` из Pydantic { #pydantics-dict }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. fastapi/openapi/models.py

        schemas: Optional[dict[str, Union[Schema, Reference]]] = None
        responses: Optional[dict[str, Union[Response, Reference]]] = None
        parameters: Optional[dict[str, Union[Parameter, Reference]]] = None
        examples: Optional[dict[str, Union[Example, Reference]]] = None
        requestBodies: Optional[dict[str, Union[RequestBody, Reference]]] = None
        headers: Optional[dict[str, Union[Header, Reference]]] = None
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/mylasta/action/FessHtmlPath.java

        /** The path of the HTML: /admin/dict/admin_dict.jsp */
        HtmlNext path_AdminDict_AdminDictJsp = new HtmlNext("/admin/dict/admin_dict.jsp");
    
        /** The path of the HTML: /admin/dict/kuromoji/admin_dict_kuromoji.jsp */
        HtmlNext path_AdminDictKuromoji_AdminDictKuromojiJsp = new HtmlNext("/admin/dict/kuromoji/admin_dict_kuromoji.jsp");
    
        /** The path of the HTML: /admin/dict/kuromoji/admin_dict_kuromoji_details.jsp */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Jun 21 04:02:44 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  4. tests/benchmarks/test_general_performance.py

        items: list[dict[str, Any]]
        metadata: dict[str, Any]
    
    
    class LargeOut(BaseModel):
        items: list[dict[str, Any]]
        metadata: dict[str, Any]
    
    
    app = FastAPI()
    
    
    @app.post("/sync/validated", response_model=ItemOut)
    def sync_validated(item: ItemIn, dep: Annotated[int, Depends(dep_b)]):
        return ItemOut(name=item.name, value=item.value, dep=dep)
    
    
    @app.get("/sync/dict-no-response-model")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 20:40:26 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. tests/test_response_by_alias.py

    
    @app.get("/by-alias/dict", response_model=Model)
    def by_alias_dict():
        return {"alias": "Foo"}
    
    
    @app.get("/by-alias/model", response_model=Model)
    def by_alias_model():
        return Model(alias="Foo")
    
    
    @app.get("/by-alias/list", response_model=list[Model])
    def by_alias_list():
        return [{"alias": "Foo"}, {"alias": "Bar"}]
    
    
    @app.get("/no-alias/dict", response_model=ModelNoAlias)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  6. fastapi/_compat/v2.py

    def _remap_definitions_and_field_mappings(
        *,
        model_name_map: ModelNameMap,
        definitions: dict[str, Any],
        field_mapping: dict[
            tuple[ModelField, Literal["validation", "serialization"]], JsonSchemaValue
        ],
    ) -> tuple[
        dict[tuple[ModelField, Literal["validation", "serialization"]], JsonSchemaValue],
        dict[str, Any],
    ]:
        old_name_to_new_name_map = {}
        for field_key, schema in field_mapping.items():
    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/openapi/utils.py

        operation_ids: set[str],
        model_name_map: ModelNameMap,
        field_mapping: dict[
            tuple[ModelField, Literal["validation", "serialization"]], dict[str, Any]
        ],
        separate_input_output_schemas: bool = True,
    ) -> tuple[dict[str, Any], dict[str, Any], dict[str, Any]]:
        path = {}
        security_schemes: dict[str, Any] = {}
        definitions: dict[str, Any] = {}
        assert route.methods is not None, "Methods must be a list"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  8. tests/test_dependency_contextmanager.py

        pass
    
    
    class OtherDependencyError(Exception):
        pass
    
    
    async def asyncgen_state(state: dict[str, str] = Depends(get_state)):
        state["/async"] = "asyncgen started"
        yield state["/async"]
        state["/async"] = "asyncgen completed"
    
    
    def generator_state(state: dict[str, str] = Depends(get_state)):
        state["/sync"] = "generator started"
        yield state["/sync"]
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. fastapi/params.py

                    "although still supported. Use examples instead."
                ),
            ] = _Unset,
            openapi_examples: Optional[dict[str, Example]] = None,
            deprecated: Union[deprecated, str, bool, None] = None,
            include_in_schema: bool = True,
            json_schema_extra: Union[dict[str, Any], None] = None,
            **extra: Any,
        ):
            if example is not _Unset:
                warnings.warn(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  10. scripts/people.py

                    }
                )
        return users
    
    
    def get_users_to_write(
        *,
        counter: Counter[str],
        authors: dict[str, Author],
        min_count: int = 2,
    ) -> list[dict[str, Any]]:
        users: dict[str, Any] = {}
        users_list: list[dict[str, Any]] = []
        for user, count in counter.most_common(60):
            if count >= min_count:
                author = authors[user]
                user_data = {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top