Search Options

Results per page
Sort
Preferred Languages
Advance

Results 511 - 520 of 1,275 for noneOf (0.1 sec)

  1. cmd/object-handlers-common_test.go

    		expectedCode      int
    	}{
    		// If-None-Match(false) and If-Modified-Since(true)
    		{
    			name:            "If-None-Match1",
    			ifNoneMatch:     "aa",
    			ifModifiedSince: "Sun, 26 Aug 2024 02:01:00 GMT",
    			objInfo:         objInfo,
    			expectedFlag:    true,
    			expectedCode:    304,
    		},
    		// If-Modified-Since(false)
    		{
    			name:            "If-None-Match2",
    			ifNoneMatch:     "aaa",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 06:33:53 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/body.md

    /// note
    
    FastAPI will know that the value of `q` is not required because of the default value `= None`.
    
    The `str | None` (Python 3.10+) or `Union` in `Union[str, None]` (Python 3.8+) is not used by FastAPI to determine that the value is not required, it will know it's not required because it has a default value of `= None`.
    
    But adding the type annotations will allow your editor to give you better support and detect errors.
    
    ///
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:58:19 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. docs_src/additional_responses/tutorial002.py

        responses={
            200: {
                "content": {"image/png": {}},
                "description": "Return the JSON item or an image.",
            }
        },
    )
    async def read_item(item_id: str, img: Union[bool, None] = None):
        if img:
            return FileResponse("image.png", media_type="image/png")
        else:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 628 bytes
    - Viewed (0)
  4. tests/test_param_class.py

    app = FastAPI()
    
    
    @app.get("/items/")
    def read_items(q: Optional[str] = Param(default=None)):  # type: ignore
        return {"q": q}
    
    
    client = TestClient(app)
    
    
    def test_default_param_query_none():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == {"q": None}
    
    
    def test_default_param_query():
        response = client.get("/items/?q=foo")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 636 bytes
    - Viewed (0)
  5. docs/fr/docs/tutorial/body-multiple-params.md

    ```Python
    q: Union[str, None] = None
    ```
    
    Ou bien, en Python 3.10 et supérieur :
    
    ```Python
    q: str | None = None
    ```
    
    Par exemple :
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="27"
    {!> ../../docs_src/body_multiple_params/tutorial004_an_py310.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. arm_compiler.BUILD

            "lib/gcc/arm-rpi-linux-gnueabihf/**",
            "include/**",
        ]),
    )
    
    filegroup(
        name = "aarch64_compiler_pieces",
        srcs = glob([
            "aarch64-none-linux-gnu/**",
            "libexec/**",
            "lib/gcc/aarch64-none-linux-gnu/**",
            "include/**",
        ]),
    )
    
    filegroup(
        name = "compiler_components",
        srcs = [
            ":ar",
            ":as",
            ":gcc",
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Apr 12 11:17:46 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/metadata.md

        * Вы можете задать его URL с помощью параметра `docs_url`.
        * Вы можете отключить это с помощью настройки `docs_url=None`.
    * **ReDoc**: отображаемый по адресу `/redoc`.
        * Вы можете задать его URL с помощью параметра `redoc_url`.
        * Вы можете отключить это с помощью настройки `redoc_url=None`.
    
    К примеру, чтобы задать отображение Swagger UI по адресу `/documentation` и отключить ReDoc:
    
    ```Python hl_lines="3"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. docs_src/dependencies/tutorial003_an_py310.py

    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}]
    
    
    class CommonQueryParams:
        def __init__(self, q: str | None = None, skip: int = 0, limit: int = 100):
            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons: Annotated[Any, Depends(CommonQueryParams)]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 655 bytes
    - Viewed (0)
  9. scripts/deploy_docs_status.py

    from github import Github
    from pydantic import SecretStr
    from pydantic_settings import BaseSettings
    
    
    class Settings(BaseSettings):
        github_repository: str
        github_token: SecretStr
        deploy_url: str | None = None
        commit_sha: str
        run_id: int
        is_done: bool = False
    
    
    def main():
        logging.basicConfig(level=logging.INFO)
        settings = Settings()
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 09 15:52:41 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. istioctl/pkg/checkinject/testdata/check-inject/never-match-injector.yaml

        rules:
          - apiGroups:
              - ""
            apiVersions:
              - v1
            operations:
              - CREATE
            resources:
              - pods
            scope: '*'
        sideEffects: None
        timeoutSeconds: 10
      - admissionReviewVersions:
          - v1beta1
          - v1
        clientConfig:
          service:
            name: istiod
            namespace: istio-system
            path: /inject
            port: 443
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top