Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 68 for Junior (0.16 sec)

  1. docs/en/docs/tutorial/body.md

    !!! note
        FastAPI will know that the value of `q` is not required because of the default value `= None`.
    
        The `Union` in `Union[str, None]` is not used by FastAPI, but will allow your editor to give you better support and detect errors.
    
    ## Without Pydantic
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/extra-models.md

    !!! note "Hinweis"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:26:47 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  3. docs/de/docs/python-types.md

    #### <abbr title="Union – Verbund, Einheit‚ Vereinigung: Eines von Mehreren">Union</abbr>
    
    Sie können deklarieren, dass eine Variable einer von **verschiedenen Typen** sein kann, zum Beispiel ein `int` oder ein `str`.
    
    In Python 3.6 und höher (inklusive Python 3.10) können Sie den `Union`-Typ von `typing` verwenden und die möglichen Typen innerhalb der eckigen Klammern auflisten.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:29:25 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/body.md

    * 🚥 🔢 **⭐ 🆎** (💖 `int`, `float`, `str`, `bool`, ♒️) ⚫️ 🔜 🔬 **🔢** 🔢.
    * 🚥 🔢 📣 🆎 **Pydantic 🏷**, ⚫️ 🔜 🔬 📨 **💪**.
    
    !!! note
        FastAPI 🔜 💭 👈 💲 `q` 🚫 ✔ ↩️ 🔢 💲 `= None`.
    
         `Union` `Union[str, None]` 🚫 ⚙️ FastAPI, ✋️ 🔜 ✔ 👆 👨‍🎨 🤝 👆 👍 🐕‍🦺 &amp; 🔍 ❌.
    
    ## 🍵 Pydantic
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/extra-models.md

        {!> ../../../docs_src/extra_models/tutorial002.py!}
        ```
    
    ## `Union` 或者 `anyOf`
    
    响应可以声明为两种类型的 `Union` 类型,即该响应可以是两种类型中的任意类型。
    
    在 OpenAPI 中可以使用 `anyOf` 定义。
    
    为此,请使用 Python 标准类型提示 <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>:
    
    !!! note "笔记"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 01 01:15:53 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  6. docs/bn/docs/python-types.md

        ```
    
    #### `Union` বা `Optional` ব্যবহার
    
    যদি আপনি Python 3.10-এর নীচের সংস্করণ ব্যবহার করেন, তবে এখানে আমার খুবই **ব্যক্তিগত** দৃষ্টিভঙ্গি থেকে একটি টিপস:
    
    * 🚨 `Optional[SomeType]` ব্যবহার এড়িয়ে চলুন।
    * এর পরিবর্তে ✨ **`Union[SomeType, None]` ব্যবহার করুন** ✨।
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Apr 03 15:34:37 GMT 2024
    - 36K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/body-multiple-params.md

    Dado que, por padrão, valores singulares são interpretados como parâmetros de consulta, você não precisa explicitamente adicionar uma `Query`, você pode somente:
    
    ```Python
    q: Union[str, None] = None
    ```
    
    Ou como em Python 3.10 e versões superiores:
    
    ```Python
    q: str | None = None
    ```
    
    Por exemplo:
    
    === "Python 3.10+"
    
        ```Python hl_lines="26"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/query-params.md

    !!! check "확인"
        **FastAPI**는 `item_id`가 경로 매개변수이고 `q`는 경로 매개변수가 아닌 쿼리 매개변수라는 것을 알 정도로 충분히 똑똑합니다.
    
    !!! note "참고"
        FastAPI는 `q`가 `= None`이므로 선택적이라는 것을 인지합니다.
    
        `Union[str, None]`에 있는 `Union`은 FastAPI(FastAPI는 `str` 부분만 사용합니다)가 사용하는게 아니지만, `Union[str, None]`은 편집기에게 코드에서 오류를 찾아낼 수 있게 도와줍니다.
    
    ## 쿼리 매개변수 형변환
    
    `bool` 형으로 선언할 수도 있고, 아래처럼 변환됩니다:
    
    ```Python hl_lines="9"
    {!../../../docs_src/query_params/tutorial003.py!}
    ```
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/extra-models.md

    ```Python hl_lines="9  15 16  19 20  23 24"
    {!../../../docs_src/extra_models/tutorial002.py!}
    ```
    
    ## `Union`または`anyOf`
    
    レスポンスを2つの型の`Union`として宣言することができます。
    
    OpenAPIでは`anyOf`で定義されます。
    
    そのためには、標準的なPythonの型ヒント<a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>を使用します:
    
    ```Python hl_lines="1 14 15 18 19 20 33"
    {!../../../docs_src/extra_models/tutorial003.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 15 15:36:32 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  10. docs/en/docs/index.md

    ## Example
    
    ### Create it
    
    * Create a file `main.py` with:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @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}
    ```
    
    <details markdown="1">
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 19.8K bytes
    - Viewed (0)
Back to top