Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,624 for none (0.2 sec)

  1. fastapi/applications.py

            dependencies: Optional[Sequence[Depends]] = None,
            summary: Optional[str] = None,
            description: Optional[str] = None,
            response_description: str = "Successful Response",
            responses: Optional[Dict[Union[int, str], Dict[str, Any]]] = None,
            deprecated: Optional[bool] = None,
            methods: Optional[List[str]] = None,
            operation_id: Optional[str] = None,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_multiple_params/test_tutorial003_an_py310.py

            "item": {
                "name": "Foo",
                "price": 50.5,
                "description": None,
                "tax": None,
            },
            "user": {"username": "Dave", "full_name": None},
        }
    
    
    @needs_py310
    def test_post_body_no_data(client: TestClient):
        response = client.put("/items/5", json=None)
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py

                        "loc": ["body", "file"],
                        "msg": "Field required",
                        "input": None,
                    },
                    {
                        "type": "missing",
                        "loc": ["body", "fileb"],
                        "msg": "Field required",
                        "input": None,
                    },
                    {
                        "type": "missing",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/query-params-str-validations.md

    === "Python 3.10+"
    
        ```Python
        q: str | None = None
        ```
    
    === "Python 3.8+"
    
        ```Python
        q: Union[str, None] = None
        ```
    
    Вот что мы получим, если обернём это в `Annotated`:
    
    === "Python 3.10+"
    
        ```Python
        q: Annotated[str | None] = None
        ```
    
    === "Python 3.8+"
    
        ```Python
        q: Annotated[Union[str, None]] = None
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 38K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertSame(CharMatcher.any(), CharMatcher.none().negate());
        assertSame(CharMatcher.none(), CharMatcher.any().negate());
    
        assertSame(WHATEVER, CharMatcher.any().and(WHATEVER));
        assertSame(CharMatcher.any(), CharMatcher.any().or(WHATEVER));
    
        assertSame(CharMatcher.none(), CharMatcher.none().and(WHATEVER));
        assertSame(WHATEVER, CharMatcher.none().or(WHATEVER));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertSame(CharMatcher.any(), CharMatcher.none().negate());
        assertSame(CharMatcher.none(), CharMatcher.any().negate());
    
        assertSame(WHATEVER, CharMatcher.any().and(WHATEVER));
        assertSame(CharMatcher.any(), CharMatcher.any().or(WHATEVER));
    
        assertSame(CharMatcher.none(), CharMatcher.none().and(WHATEVER));
        assertSame(WHATEVER, CharMatcher.none().or(WHATEVER));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/body-multiple-params.md

    ```Python
    q: Union[str, None] = None
    ```
    
    Ou como em Python 3.10 e versões superiores:
    
    ```Python
    q: str | None = None
    ```
    
    Por exemplo:
    
    === "Python 3.10+"
    
        ```Python hl_lines="26"
        {!> ../../../docs_src/body_multiple_params/tutorial004_py310.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6K bytes
    - Viewed (0)
  8. fastapi/routing.py

            summary: Optional[str] = None,
            description: Optional[str] = None,
            response_description: str = "Successful Response",
            responses: Optional[Dict[Union[int, str], Dict[str, Any]]] = None,
            deprecated: Optional[bool] = None,
            name: Optional[str] = None,
            methods: Optional[Union[Set[str], List[str]]] = None,
            operation_id: Optional[str] = None,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  9. docs_src/body/tutorial004_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    app = FastAPI()
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item, q: str | None = None):
        result = {"item_id": item_id, **item.dict()}
        if q:
            result.update({"q": q})
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 09 14:28:58 GMT 2024
    - 408 bytes
    - Viewed (0)
  10. docs_src/schema_extra_example/tutorial005_an.py

    from pydantic import BaseModel
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        *,
        item_id: int,
        item: Annotated[
            Item,
            Body(
                openapi_examples={
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 26 18:03:13 GMT 2023
    - 1.5K bytes
    - Viewed (0)
Back to top