Search Options

Results per page
Sort
Preferred Languages
Advance

Results 321 - 330 of 996 for optional (0.13 sec)

  1. tests/test_filter_pydantic_sub_model_pv2.py

    from typing import Optional
    
    import pytest
    from dirty_equals import HasRepr, IsDict, IsOneOf
    from fastapi import Depends, FastAPI
    from fastapi.exceptions import ResponseValidationError
    from fastapi.testclient import TestClient
    
    from .utils import needs_pydanticv2
    
    
    @pytest.fixture(name="client")
    def get_client():
        from pydantic import BaseModel, ValidationInfo, field_validator
    
        app = FastAPI()
    
        class ModelB(BaseModel):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. fastapi/openapi/docs.py

            ),
        ] = "https://fastapi.tiangolo.com/img/favicon.png",
        oauth2_redirect_url: Annotated[
            Optional[str],
            Doc(
                """
                The OAuth2 redirect URL, it is normally automatically handled by FastAPI.
                """
            ),
        ] = None,
        init_oauth: Annotated[
            Optional[Dict[str, Any]],
            Doc(
                """
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu May 23 22:59:02 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/dependencies/sub-dependencies.md

    /// tip
    
    Prefer to use the `Annotated` version if possible.
    
    ///
    
    ```Python hl_lines="8-9"
    {!> ../../docs_src/dependencies/tutorial005.py!}
    ```
    
    ////
    
    It declares an optional query parameter `q` as a `str`, and then it just returns it.
    
    This is quite simple (not very useful), but will help us focus on how the sub-dependencies work.
    
    ## Second dependency, "dependable" and "dependant"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/resources/META-INF/proguard/okhttp3.pro

    # OkHttp test platform rules uses optional classes.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Dec 23 14:46:51 UTC 2023
    - 65 bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/login/LoginAction.java

    import org.codelibs.fess.mylasta.action.FessUserBean;
    import org.codelibs.fess.util.ComponentUtil;
    import org.codelibs.fess.util.RenderDataUtil;
    import org.dbflute.optional.OptionalEntity;
    import org.dbflute.optional.OptionalThing;
    import org.lastaflute.web.Execute;
    import org.lastaflute.web.login.exception.LoginFailureException;
    import org.lastaflute.web.response.HtmlResponse;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. src/packaging/deb/scripts/control

    Package: fess
    Version: [[version]]
    Architecture: all
    Maintainer: Fess Team
    Depends: libc6, adduser
    Section: web
    Priority: optional
    Homepage: https://github.com/codelibs/fess
    Description: Enterprise Search Server: Fess
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Dec 10 01:24:02 UTC 2015
    - 420 bytes
    - Viewed (0)
  7. fess-crawler-opensearch/pom.xml

    			<version>${project.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.codelibs.fess</groupId>
    			<artifactId>fess-crawler-lasta</artifactId>
    			<version>${project.version}</version>
    			<optional>true</optional>
    		</dependency>
    		<dependency>
    			<groupId>org.codelibs</groupId>
    			<artifactId>corelib</artifactId>
    			<version>${corelib.version}</version>
    		</dependency>
    		<dependency>
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. docs/fr/docs/python-types.md

        * Les valeurs de ce dictionnaire sont de type `float`.
    
    #### `Optional`
    
    Vous pouvez aussi utiliser `Optional` pour déclarer qu'une variable a un type, comme `str` mais qu'il est "optionnel" signifiant qu'il pourrait aussi être `None`.
    
    {*../../docs_src/python_types/tutorial009.py hl[1,4] *}
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:21:34 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

          return new Chopper() {
            @Override
            Optional<String> chop(String str) {
              return i.chop(str).or(you.chop(str));
            }
          };
        }
    
        abstract Optional<String> chop(String str);
    
        static Chopper suffix(String suffix) {
          return new Chopper() {
            @Override
            Optional<String> chop(String str) {
              if (str.endsWith(suffix)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/query-params-str-validations.md

    以下のアプリケーションを例にしてみましょう:
    
    ```Python hl_lines="9"
    {!../../docs_src/query_params_str_validations/tutorial001.py!}
    ```
    
    クエリパラメータ `q` は `Optional[str]` 型で、`None` を許容する `str` 型を意味しており、デフォルトは `None` です。そのため、FastAPIはそれが必須ではないと理解します。
    
    /// note | "備考"
    
    FastAPIは、 `q` はデフォルト値が `=None` であるため、必須ではないと理解します。
    
    `Optional[str]` における `Optional` はFastAPIには利用されませんが、エディターによるより良いサポートとエラー検出を可能にします。
    
    ///
    
    ## バリデーションの追加
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top