Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 421 - 430 of 542 for Annotated (0.08 seconds)

  1. guava/src/com/google/common/base/Joiner.java

         * and Joiner.on(...).useForNull(...) both declare the same return type: plain Joiner. To ensure
         * that users *can* pass null arguments to Joiner, we annotate it as if it always tolerates null
         * inputs, rather than as if it never tolerates them.
         *
         * We rely on checkers to implement special cases to catch dangerous calls to join(), etc. based
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 15:16:19 GMT 2025
    - 21K bytes
    - Click Count (0)
  2. docs/es/docs/tutorial/response-model.md

    Y las herramientas también estarán felices porque tanto `RedirectResponse` como `JSONResponse` son subclases de `Response`, por lo que la anotación del tipo es correcta.
    
    ### Anotar una Subclase de Response { #annotate-a-response-subclass }
    
    También puedes usar una subclase de `Response` en la anotación del tipo:
    
    {* ../../docs_src/response_model/tutorial003_03_py310.py hl[8:9] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 17.1K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/base/Joiner.java

         * and Joiner.on(...).useForNull(...) both declare the same return type: plain Joiner. To ensure
         * that users *can* pass null arguments to Joiner, we annotate it as if it always tolerates null
         * inputs, rather than as if it never tolerates them.
         *
         * We rely on checkers to implement special cases to catch dangerous calls to join(), etc. based
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  4. docs/de/docs/tutorial/response-model.md

    Und Tools werden auch glücklich sein, weil sowohl `RedirectResponse` als auch `JSONResponse` Unterklassen von `Response` sind, die Typannotation ist daher korrekt.
    
    ### Eine Unterklasse von Response annotieren { #annotate-a-response-subclass }
    
    Sie können auch eine Unterklasse von `Response` in der Typannotation verwenden.
    
    {* ../../docs_src/response_model/tutorial003_03_py310.py hl[8:9] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 17.5K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

        /*
         * Don't bother testing: Preconditions defines a bunch of methods that accept a template (or
         * even entire message) that simultaneously:
         *
         * - _shouldn't_ be null, so we don't annotate it with @Nullable
         *
         * - _can_ be null without causing a runtime failure (because we don't want the interesting
         *   details of precondition failure to be hidden by an exception we throw about an unexpectedly
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 19.1K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/base/PreconditionsTest.java

        /*
         * Don't bother testing: Preconditions defines a bunch of methods that accept a template (or
         * even entire message) that simultaneously:
         *
         * - _shouldn't_ be null, so we don't annotate it with @Nullable
         *
         * - _can_ be null without causing a runtime failure (because we don't want the interesting
         *   details of precondition failure to be hidden by an exception we throw about an unexpectedly
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 19.1K bytes
    - Click Count (0)
  7. docs/fr/docs/tutorial/response-model.md

    Et les outils seront également satisfaits car `RedirectResponse` et `JSONResponse` sont des sous-classes de `Response`, donc l'annotation de type est correcte.
    
    ### Annoter une sous-classe de Response { #annotate-a-response-subclass }
    
    Vous pouvez aussi utiliser une sous-classe de `Response` dans l'annotation de type :
    
    {* ../../docs_src/response_model/tutorial003_03_py310.py hl[8:9] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 18.1K bytes
    - Click Count (0)
  8. docs/ja/docs/deployment/docker.md

    def read_item(item_id: int, q: str | None = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile { #dockerfile }
    
    同じプロジェクト・ディレクトリに`Dockerfile`というファイルを作成します:
    
    ```{ .dockerfile .annotate }
    # (1)!
    FROM python:3.14
    
    # (2)!
    WORKDIR /code
    
    # (3)!
    COPY ./requirements.txt /code/requirements.txt
    
    # (4)!
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 36.8K bytes
    - Click Count (0)
  9. docs/ko/docs/tutorial/response-model.md

    이 간단한 경우는 반환 타입 어노테이션이 `Response` 클래스(또는 그 서브클래스)이기 때문에 FastAPI에서 자동으로 처리됩니다.
    
    그리고 `RedirectResponse`와 `JSONResponse`는 모두 `Response`의 서브클래스이므로, 타입 어노테이션이 올바르기 때문에 도구들도 만족합니다.
    
    ### Response 서브클래스 어노테이션 { #annotate-a-response-subclass }
    
    타입 어노테이션에 `Response`의 서브클래스를 사용할 수도 있습니다:
    
    {* ../../docs_src/response_model/tutorial003_03_py310.py hl[8:9] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  10. docs/zh/docs/tutorial/response-model.md

    这个简单场景 FastAPI 会自动处理,因为返回类型注解是 `Response`(或其子类)。
    
    工具也会满意,因为 `RedirectResponse` 和 `JSONResponse` 都是 `Response` 的子类,所以类型注解是正确的。
    
    ### 注解 Response 的子类 { #annotate-a-response-subclass }
    
    你也可以在类型注解中使用 `Response` 的子类:
    
    {* ../../docs_src/response_model/tutorial003_03_py310.py hl[8:9] *}
    
    这同样可行,因为 `RedirectResponse` 是 `Response` 的子类,FastAPI 会自动处理这个简单场景。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 14.5K bytes
    - Click Count (0)
Back to Top