Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 399 for typer (0.02 seconds)

  1. docs/en/docs/tutorial/query-params-str-validations.md

    ///
    
    ## Use `Annotated` in the type for the `q` parameter { #use-annotated-in-the-type-for-the-q-parameter }
    
    Remember I told you before that `Annotated` can be used to add metadata to your parameters in the [Python Types Intro](../python-types.md#type-hints-with-metadata-annotations)?
    
    Now it's the time to use it with FastAPI. ๐Ÿš€
    
    We had this type annotation:
    
    ```Python
    q: str | None = None
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  2. docs/ko/docs/tutorial/query-params-str-validations.md

    `Annotated`๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์ „์— ์ตœ์†Œ 0.95.1 ๋ฒ„์ „์œผ๋กœ [FastAPI ๋ฒ„์ „ ์—…๊ทธ๋ ˆ์ด๋“œ](../deployment/versions.md#upgrading-the-fastapi-versions)๋ฅผ ์ง„ํ–‰ํ•˜์„ธ์š”.
    
    ///
    
    ## `q` ๋งค๊ฐœ๋ณ€์ˆ˜์˜ ํƒ€์ž…์— `Annotated` ์‚ฌ์šฉํ•˜๊ธฐ { #use-annotated-in-the-type-for-the-q-parameter }
    
    ์ด์ „์— [Python ํƒ€์ž… ์†Œ๊ฐœ](../python-types.md#type-hints-with-metadata-annotations)์—์„œ `Annotated`๋ฅผ ์‚ฌ์šฉํ•ด ๋งค๊ฐœ๋ณ€์ˆ˜์— ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ๋ฅผ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ๋‹ค๊ณ  ๋ง์”€๋“œ๋ฆฐ ๊ฒƒ์„ ๊ธฐ์–ตํ•˜์‹œ๋‚˜์š”?
    
    ์ด์ œ FastAPI์—์„œ ์‚ฌ์šฉํ•  ์ฐจ๋ก€์ž…๋‹ˆ๋‹ค. ๐Ÿš€
    
    ๋‹ค์Œ๊ณผ ๊ฐ™์€ ํƒ€์ž… ์–ด๋…ธํ…Œ์ด์…˜์ด ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค:
    
    ```Python
    q: str | None = None
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/query-params-str-validations.md

    ๅœจไฝฟ็”จ `Annotated` ไน‹ๅ‰๏ผŒ่ฏท็กฎไฟๅ…ˆ[ๅ‡็บง FastAPI ็‰ˆๆœฌ](../deployment/versions.md#upgrading-the-fastapi-versions)ๅˆฐ่‡ณๅฐ‘ 0.95.1ใ€‚
    
    ///
    
    ## ๅœจ `q` ๅ‚ๆ•ฐ็š„็ฑปๅž‹ไธญไฝฟ็”จ `Annotated` { #use-annotated-in-the-type-for-the-q-parameter }
    
    ่ฟ˜่ฎฐๅพ—ๆˆ‘ไน‹ๅ‰ๅœจ[Python ็ฑปๅž‹็ฎ€ไป‹](../python-types.md#type-hints-with-metadata-annotations)ไธญ่ฏด่ฟ‡ๅฏไปฅ็”จ `Annotated` ็ป™ๅ‚ๆ•ฐๆทปๅŠ ๅ…ƒๆ•ฐๆฎๅ—๏ผŸ
    
    ็Žฐๅœจๆญฃๆ˜ฏไธŽ FastAPI ๆญ้…ไฝฟ็”จๅฎƒ็š„ๆ—ถๅ€™ใ€‚๐Ÿš€
    
    ๆˆ‘ไปฌไน‹ๅ‰็š„็ฑปๅž‹ๆ ‡ๆณจๆ˜ฏ๏ผš
    
    ```Python
    q: str | None = None
    ```
    
    ๆˆ‘ไปฌ่ฆๅš็š„ๆ˜ฏ็”จ `Annotated` ๆŠŠๅฎƒๅŒ…่ตทๆฅ๏ผŒๅ˜ๆˆ๏ผš
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 15.4K bytes
    - Click Count (0)
  4. docs/ja/docs/tutorial/query-params-str-validations.md

    ///
    
    ## `q` ใƒ‘ใƒฉใƒกใƒผใ‚ฟใฎๅž‹ใง `Annotated` ใ‚’ไฝฟใ† { #use-annotated-in-the-type-for-the-q-parameter }
    
    ไปฅๅ‰ใ€[Python Types Intro](../python-types.md#type-hints-with-metadata-annotations) ใง `Annotated` ใ‚’ไฝฟใฃใฆใƒ‘ใƒฉใƒกใƒผใ‚ฟใซใƒกใ‚ฟใƒ‡ใƒผใ‚ฟใ‚’่ฟฝๅŠ ใงใใ‚‹ใจ่ชฌๆ˜Žใ—ใŸใ“ใจใ‚’่ฆšใˆใฆใ„ใพใ™ใ‹๏ผŸ
    
    ใ„ใ‚ˆใ„ใ‚ˆ FastAPI ใงไฝฟใ†ใจใใงใ™ใ€‚ ๐Ÿš€
    
    ๆฌกใฎๅž‹ใ‚ขใƒŽใƒ†ใƒผใ‚ทใƒงใƒณใŒใ‚ใ‚Šใพใ—ใŸ:
    
    ```Python
    q: str | None = None
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 20.3K bytes
    - Click Count (0)
  5. scripts/tests/test_translation_fixer/test_header_permalinks/test_header_number_mismatch.py

    from pathlib import Path
    
    import pytest
    from typer.testing import CliRunner
    
    from scripts.translation_fixer import cli
    
    data_path = Path(
        "scripts/tests/test_translation_fixer/test_header_permalinks/data"
    ).absolute()
    
    
    @pytest.mark.parametrize(
        "copy_test_files",
        [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_number_gt.md")],
        indirect=True,
    )
    def test_gt(runner: CliRunner, root_dir: Path, copy_test_files):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  6. scripts/tests/test_translation_fixer/test_complex_doc/test_compex_doc.py

    from pathlib import Path
    
    import pytest
    from typer.testing import CliRunner
    
    from scripts.translation_fixer import cli
    
    data_path = Path(
        "scripts/tests/test_translation_fixer/test_complex_doc/data"
    ).absolute()
    
    
    @pytest.mark.parametrize(
        "copy_test_files",
        [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc.md")],
        indirect=True,
    )
    def test_fix(runner: CliRunner, root_dir: Path, copy_test_files):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 902 bytes
    - Click Count (0)
  7. scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_number_mismatch.py

    from pathlib import Path
    
    import pytest
    from typer.testing import CliRunner
    
    from scripts.translation_fixer import cli
    
    data_path = Path(
        "scripts/tests/test_translation_fixer/test_code_blocks/data"
    ).absolute()
    
    
    @pytest.mark.parametrize(
        "copy_test_files",
        [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_number_gt.md")],
        indirect=True,
    )
    def test_gt(runner: CliRunner, root_dir: Path, copy_test_files):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  8. scripts/tests/test_translation_fixer/conftest.py

    import shutil
    import sys
    from pathlib import Path
    
    import pytest
    from typer.testing import CliRunner
    
    skip_on_windows = pytest.mark.skipif(
        sys.platform == "win32", reason="Skipping on Windows"
    )
    
    
    THIS_DIR = Path(__file__).parent.resolve()
    
    
    def pytest_collection_modifyitems(config, items: list[pytest.Item]) -> None:
        if sys.platform != "win32":
            return
    
        for item in items:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 25 10:37:59 GMT 2026
    - 1.3K bytes
    - Click Count (0)
  9. scripts/tests/test_translation_fixer/test_html_links/test_html_links_number_mismatch.py

    from pathlib import Path
    
    import pytest
    from typer.testing import CliRunner
    
    from scripts.translation_fixer import cli
    
    data_path = Path("scripts/tests/test_translation_fixer/test_html_links/data").absolute()
    
    
    @pytest.mark.parametrize(
        "copy_test_files",
        [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_number_gt.md")],
        indirect=True,
    )
    def test_gt(runner: CliRunner, root_dir: Path, copy_test_files):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  10. scripts/tests/test_translation_fixer/test_markdown_links/test_mkd_links_number_mismatch.py

    from pathlib import Path
    
    import pytest
    from typer.testing import CliRunner
    
    from scripts.translation_fixer import cli
    
    data_path = Path(
        "scripts/tests/test_translation_fixer/test_markdown_links/data"
    ).absolute()
    
    
    @pytest.mark.parametrize(
        "copy_test_files",
        [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_number_gt.md")],
        indirect=True,
    )
    def test_gt(runner: CliRunner, root_dir: Path, copy_test_files):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 22:43:44 GMT 2026
    - 1.9K bytes
    - Click Count (0)
Back to Top