Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 183 for annotated (0.37 sec)

  1. docs_src/dependencies/tutorial008d_an.py

    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    class InternalError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except InternalError:
            print("We don't swallow the internal error here, we raise again 😎")
            raise
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 744 bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/extra-data-types.md

        ```
    
    === "Python 3.10+ nicht annotiert"
    
        !!! tip
            Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
        ```Python hl_lines="1  2  11-15"
        {!> ../../../docs_src/extra_data_types/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+ nicht annotiert"
    
        !!! tip
            Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
        ```Python hl_lines="1  2  12-16"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 18:08:55 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. docs/ko/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="18"
        {!> ../../../docs_src/dependencies/tutorial006_an.py!}
        ```
    
    === "Python 3.8 Annotated가 없는 경우"
    
        !!! tip "팁"
            가능하다면 `Annotated`가 달린 버전을 권장합니다.
    
        ```Python hl_lines="17"
        {!> ../../../docs_src/dependencies/tutorial006.py!}
        ```
    
    이러한 의존성들은 기존 의존성들과 같은 방식으로 실행/해결됩니다. 그러나 값은 (무엇이든 반환한다면) *경로 작동 함수*에 제공되지 않습니다.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Feb 11 13:49:45 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. docs/tr/docs/tutorial/request-forms.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/request_forms/tutorial001_an.py!}
        ```
    
    === "Python 3.8+ non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/request_forms/tutorial001.py!}
        ```
    
    ## `Form` Parametrelerini Tanımlayın
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed May 08 19:10:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/request-forms.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/request_forms/tutorial001_an.py!}
        ```
    
    === "Python 3.8+ без Annotated"
    
        !!! tip "Подсказка"
            Рекомендуется использовать 'Annotated' версию, если это возможно.
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/request_forms/tutorial001.py!}
        ```
    
    ## Определение параметров `Form`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    === "Python 3.8+"
    
        ```Python hl_lines="18"
        {!> ../../../docs_src/dependencies/tutorial006_an.py!}
        ```
    
    === "Python 3.8 nicht annotiert"
    
        !!! tip "Tipp"
            Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
        ```Python hl_lines="17"
        {!> ../../../docs_src/dependencies/tutorial006.py!}
        ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 18:09:16 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. docs_src/dependencies/tutorial008c_an_py39.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI, HTTPException
    
    app = FastAPI()
    
    
    class InternalError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except InternalError:
            print("Oops, we didn't raise again, Britney 😱")
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id == "portal-gun":
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 700 bytes
    - Viewed (0)
  8. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/Flaky.groovy

     *
     * For Spock tests, including/excluding tests annotated by this annotation is handled by `SpockConfig.groovy` in classpath.
     * For JUnit Jupiter tests, because it's a <a href="https://junit.org/junit5/docs/current/user-guide/#writing-tests-meta-annotations">Meta-Annotation</a>,
     *   tests annotated by this is handled by `JUnitPlatformOptions.includeTags/excludeTags`.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/plugin/annotations/Mojo.java

         * If not set, it will be inferred from the fields
         * annotated with the {@link Resolution} annotation.
         */
        @Nonnull
        boolean dependencyCollection() default false;
    
        /**
         * Comma separated list of path scopes that will be
         * required for dependency resolution.
         * If not set, it will be inferred from the fields
         * annotated with the {@link Resolution} annotation.
         */
        @Nonnull
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/timeout/IntegrationTestTimeout.java

    public @interface IntegrationTestTimeout {
        int DEFAULT_TIMEOUT_SECONDS = 600;
    
        /**
         * Returns the duration after which the execution of the annotated feature or fixture
         * method times out.
         *
         * @return the duration after which the execution of the annotated feature or
         * fixture method times out
         */
        int value();
    
        /**
         * Returns the duration's time unit.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top