Search Options

Results per page
Sort
Preferred Languages
Advance

Results 441 - 450 of 781 for typing (0.11 sec)

  1. tests/test_request_params/test_body/test_list.py

    from typing import Annotated, Union
    
    import pytest
    from dirty_equals import IsOneOf, IsPartialDict
    from fastapi import Body, FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, Field
    
    from .utils import get_body_model_name
    
    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:31:34 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  2. tests/test_request_params/test_body/test_optional_str.py

    from typing import Annotated, Optional
    
    import pytest
    from fastapi import Body, FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, Field
    
    from .utils import get_body_model_name
    
    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    @app.post("/optional-str", operation_id="optional_str")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  3. README.md

    ```
    
    </div>
    
    **Note**: Make sure you put `"fastapi[standard]"` in quotes to ensure it works in all terminals.
    
    ## 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}")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 25 11:01:37 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/query-params-str-validations.md

    To achieve that, first import:
    
    * `Query` from `fastapi`
    * `Annotated` from `typing`
    
    {* ../../docs_src/query_params_str_validations/tutorial002_an_py310.py hl[1,3] *}
    
    /// info
    
    FastAPI added support for `Annotated` (and started recommending it) in version 0.95.0.
    
    If you have an older version, you would get errors when trying to use `Annotated`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  5. fastapi/params.py

    import warnings
    from collections.abc import Sequence
    from dataclasses import dataclass
    from enum import Enum
    from typing import Annotated, Any, Callable, Optional, Union
    
    from fastapi.exceptions import FastAPIDeprecationWarning
    from fastapi.openapi.models import Example
    from pydantic import AliasChoices, AliasPath
    from pydantic.fields import FieldInfo
    from typing_extensions import Literal, deprecated
    
    from ._compat import (
        Undefined,
    )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  6. docs/pt/docs/features.md

    * Valida **estruturas complexas**:
        * Use modelos hierárquicos do Pydantic, `List` e `Dict` do `typing` do Python, etc.
        * Validadores permitem que esquemas de dados complexos sejam limpos e facilmente definidos, conferidos e documentados como JSON Schema.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  7. docs/uk/docs/tutorial/query-params-str-validations.md

    ### Імпорт `Query` та `Annotated`
    
    Щоб це зробити, спочатку імпортуємо:
    
    * `Query` з `fastapi`
    * `Annotated` з `typing`
    
    {* ../../docs_src/query_params_str_validations/tutorial002_an_py310.py hl[1,3] *}
    
    /// info | Інформація
    
    FastAPI додав підтримку `Annotated` (і почав рекомендувати його) у версії 0.95.0.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri May 30 14:17:24 UTC 2025
    - 26.1K bytes
    - Viewed (0)
  8. docs/bigdata/README.md

    Using Scala version 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_112)
    Type in expressions to have them evaluated.
    Type :help for more information.
    
    scala>
    ```
    
    - At the _scala>_ prompt, submit the job by typing the following commands, Replace node names, file name, and file location with your values:
    
    ```
    scala> val file = sc.textFile("s3a://testbucket/testdata")
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  9. docs/ja/docs/python-types.md

    
    ### 型パラメータを持つジェネリック型
    
    データ構造の中には、`dict`、`list`、`set`、そして`tuple`のように他の値を含むことができるものがあります。また内部の値も独自の型を持つことができます。
    
    これらの型や内部の型を宣言するには、Pythonの標準モジュール`typing`を使用します。
    
    これらの型ヒントをサポートするために特別に存在しています。
    
    #### `List`
    
    例えば、`str`の`list`の変数を定義してみましょう。
    
    `typing`から`List`をインポートします(大文字の`L`を含む):
    
    {* ../../docs_src/python_types/tutorial006.py hl[1] *}
    
    
    同じようにコロン(`:`)の構文で変数を宣言します。
    
    型として、`List`を入力します。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. scripts/docs.py

    import os
    import re
    import shutil
    import subprocess
    from html.parser import HTMLParser
    from http.server import HTTPServer, SimpleHTTPRequestHandler
    from multiprocessing import Pool
    from pathlib import Path
    from typing import Any, Optional, Union
    
    import mkdocs.utils
    import typer
    import yaml
    from jinja2 import Template
    from ruff.__main__ import find_ruff_bin
    from slugify import slugify as py_slugify
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Dec 21 17:40:17 UTC 2025
    - 16.9K bytes
    - Viewed (0)
Back to top