Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 224 for init (0.12 sec)

  1. tests/test_application.py

                                        }
                                    }
                                },
                            },
                        },
                        "summary": "Get Int Id",
                        "operationId": "get_int_id_path_int__item_id__get",
                        "parameters": [
                            {
                                "required": True,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 52.2K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/path-params.md

    ```JSON
    {
      "detail": [
        {
          "type": "int_parsing",
          "loc": [
            "path",
            "item_id"
          ],
          "msg": "Input should be a valid integer, unable to parse string as an integer",
          "input": "foo",
          "url": "https://errors.pydantic.dev/2.1/v/int_parsing"
        }
      ]
    }
    ```
    
    Der Pfad-Parameter `item_id` hatte den Wert `"foo"`, was kein `int` ist.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:28:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  3. docs/fr/docs/async.md

    ```Python hl_lines="1"
    async def get_burgers(number: int):
        # Opérations asynchrones pour créer les burgers
        return burgers
    ```
    
    ...et non `def` :
    
    ```Python hl_lines="2"
    # Ceci n'est pas asynchrone
    def get_sequential_burgers(number: int):
        # Opérations asynchrones pour créer les burgers
        return burgers
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 24K bytes
    - Viewed (0)
  4. docs/hu/docs/index.md

    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    
    
    @app.put("/items/{item_id}")
    def update_item(item_id: int, item: Item):
        return {"item_name": item.name, "item_id": item_id}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 20.2K bytes
    - Viewed (0)
  5. docs/es/docs/index.md

    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    
    
    @app.put("/items/{item_id}")
    def update_item(item_id: int, item: Item):
        return {"item_name": item.name, "item_id": item_id}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19K bytes
    - Viewed (0)
  6. docs/bn/docs/index.md

    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    
    
    @app.put("/items/{item_id}")
    def update_item(item_id: int, item: Item):
        return {"item_name": item.name, "item_id": item_id}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 30.2K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/body-nested-models.md

    ---
    
    Другой полезный случай - когда вы хотите чтобы ключи были другого типа данных, например, `int`.
    
    Именно это мы сейчас и увидим здесь.
    
    В этом случае вы принимаете `dict`, пока у него есть ключи типа `int` со значениями типа `float`:
    
    === "Python 3.9+"
    
        ```Python hl_lines="7"
        {!> ../../../docs_src/body_nested_models/tutorial009_py39.py!}
        ```
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  8. docs/ja/docs/tutorial/query-params.md

    ```Python hl_lines="10"
    {!../../../docs_src/query_params/tutorial006.py!}
    ```
    
    この場合、3つのクエリパラメータがあります。:
    
    * `needy`、必須の `str` 。
    * `skip`、デフォルト値を `0` とする `int` 。
    * `limit`、オプショナルな `int` 。
    
    !!! tip "豆知識"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  9. docs/en/docs/python-types.md

    === "Python 3.8+"
    
        ```Python hl_lines="1  4"
        {!> ../../../docs_src/python_types/tutorial007.py!}
        ```
    
    This means:
    
    * The variable `items_t` is a `tuple` with 3 items, an `int`, another `int`, and a `str`.
    * The variable `items_s` is a `set`, and each of its items is of type `bytes`.
    
    #### Dict
    
    To define a `dict`, you pass 2 type parameters, separated by commas.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  10. docs/em/docs/how-to/sql-databases-peewee.md

    ```Python
    user = models.User.select().first()
    ```
    
    , 🔄, 👥 🔜 📣 *➡ 🛠️ 🔢* & 🔗 🍵 `async def`, ⏮️ 😐 `def`,:
    
    ```Python hl_lines="2"
    # Something goes here
    def read_users(skip: int = 0, limit: int = 100):
        # Something goes here
    ```
    
    ## 🔬 🏒 ⏮️ 🔁
    
    👉 🖼 🔌 ➕ *➡ 🛠️* 👈 🔬 📏 🏭 📨 ⏮️ `time.sleep(sleep_time)`.
    
    ⚫️ 🔜 ✔️ 💽 🔗 📂 ▶️ & 🔜 ⌛ 🥈 ⏭ 🙇 🔙. & 🔠 🆕 📨 🔜 ⌛ 🕐 🥈 🌘.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 19.2K bytes
    - Viewed (0)
Back to top