Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 341 - 350 of 1,168 for item2 (0.06 seconds)

  1. docs/en/docs/python-types.md

    ///
    
    That means: "the variable `items` is a `list`, and each of the items in this list is a `str`".
    
    By doing that, your editor can provide support even while processing items from the list:
    
    <img src="/img/python-types/image05.png">
    
    Without types, that's almost impossible to achieve.
    
    Notice that the variable `item` is one of the elements in the list `items`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  2. docs_src/dependencies/tutorial008d_an_py39.py

            raise
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id == "portal-gun":
            raise InternalError(
                f"The portal gun is too dangerous to be owned by {username}"
            )
        if item_id != "plumbus":
            raise HTTPException(
                status_code=404, detail="Item not found, there's only a plumbus here"
            )
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 734 bytes
    - Click Count (0)
  3. docs/es/docs/advanced/path-operation-advanced-configuration.md

    ```JSON hl_lines="22"
    {
        "openapi": "3.1.0",
        "info": {
            "title": "FastAPI",
            "version": "0.1.0"
        },
        "paths": {
            "/items/": {
                "get": {
                    "summary": "Read Items",
                    "operationId": "read_items_items__get",
                    "responses": {
                        "200": {
                            "description": "Successful Response",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  4. docs/pt/docs/advanced/path-operation-advanced-configuration.md

    ```JSON hl_lines="22"
    {
        "openapi": "3.1.0",
        "info": {
            "title": "FastAPI",
            "version": "0.1.0"
        },
        "paths": {
            "/items/": {
                "get": {
                    "summary": "Read Items",
                    "operationId": "read_items_items__get",
                    "responses": {
                        "200": {
                            "description": "Successful Response",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  5. tests/test_jsonable_encoder.py

        }
    
    
    def test_encode_dataclass():
        item = Item(name="foo", count=100)
        assert jsonable_encoder(item) == {"name": "foo", "count": 100}
        assert jsonable_encoder(item, include={"name"}) == {"name": "foo"}
        assert jsonable_encoder(item, exclude={"count"}) == {"name": "foo"}
        assert jsonable_encoder(item, include={}) == {}
        assert jsonable_encoder(item, exclude={}) == {"name": "foo", "count": 100}
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  6. docs/ru/docs/advanced/path-operation-advanced-configuration.md

    ```JSON hl_lines="22"
    {
        "openapi": "3.1.0",
        "info": {
            "title": "FastAPI",
            "version": "0.1.0"
        },
        "paths": {
            "/items/": {
                "get": {
                    "summary": "Read Items",
                    "operationId": "read_items_items__get",
                    "responses": {
                        "200": {
                            "description": "Successful Response",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  7. tests/test_tutorial/test_extra_data_types/test_tutorial001.py

                            },
                            "summary": "Read Items",
                            "operationId": "read_items_items__item_id__put",
                            "parameters": [
                                {
                                    "required": True,
                                    "schema": {
                                        "title": "Item Id",
                                        "type": "string",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  8. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/JavadocConverterTest.groovy

            _ * classMetaData.rawCommentText >> '''<ul><li>item 1<li>item 2</ul>'''
    
            when:
            def result = parser.parse(classMetaData, listener)
    
            then:
            format(result.docbook) == '''<itemizedlist><listitem>item 1</listitem><listitem>item 2</listitem></itemizedlist>'''
        }
    
        def convertsUlAndLiElementsToItemizedListElements() {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 14.2K bytes
    - Click Count (0)
  9. docs/ko/docs/advanced/templates.md

    ///
    
    ## 템플릿 작성하기
    
    그런 다음 `templates/item.html`에 템플릿을 작성할 수 있습니다. 예를 들면:
    
    ```jinja hl_lines="7"
    {!../../docs_src/templates/templates/item.html!}
    ```
    
    ### 템플릿 컨텍스트 값
    
    다음과 같은 HTML에서:
    
    {% raw %}
    
    ```jinja
    Item ID: {{ id }}
    ```
    
    {% endraw %}
    
    ...이는 전달한 "컨텍스트" `dict`에서 가져온 `id`를 표시합니다:
    
    ```Python
    {"id": id}
    ```
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  10. docs/de/docs/advanced/templates.md

    ///
    
    ## Templates erstellen { #writing-templates }
    
    Dann können Sie unter `templates/item.html` ein Template erstellen, mit z. B. folgendem Inhalt:
    
    ```jinja hl_lines="7"
    {!../../docs_src/templates/templates/item.html!}
    ```
    
    ### Template-Kontextwerte { #template-context-values }
    
    Im HTML, welches enthält:
    
    {% raw %}
    
    ```jinja
    Item ID: {{ id }}
    ```
    
    {% endraw %}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4.3K bytes
    - Click Count (0)
Back to Top