Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 103 for nine (0.01 sec)

  1. scripts/translate.py

                    "- Otherwise, preserve the original translation LINE-BY-LINE, AS-IS.",
                    "Do not:",
                    "- rephrase or rewrite correct lines just to improve the style.",
                    "- add or remove line breaks, unless the original English content changed.",
                    "- change formatting or whitespace unless absolutely required.",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:05:53 UTC 2025
    - 34.1K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_nested_models/test_tutorial004.py

        assert response.json() == {
            "item_id": 5,
            "item": {
                "name": "Foo",
                "description": None,
                "price": 35.4,
                "tax": None,
                "tags": [],
                "image": None,
            },
        }
    
    
    def test_put_empty_body(client: TestClient):
        response = client.put(
            "/items/5",
            json={},
        )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/query-params-str-validations.md

    Wir hatten diese Typannotation:
    
    //// tab | Python 3.10+
    
    ```Python
    q: str | None = None
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python
    q: Union[str, None] = None
    ```
    
    ////
    
    Was wir tun werden, ist, dies mit `Annotated` zu wrappen, sodass es zu:
    
    //// tab | Python 3.10+
    
    ```Python
    q: Annotated[str | None] = None
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_body_nested_models/test_tutorial006.py

        assert response.json() == {
            "item_id": 5,
            "item": {
                "name": "Foo",
                "description": None,
                "price": 35.4,
                "tax": None,
                "tags": [],
                "images": None,
            },
        }
    
    
    def test_put_empty_body(client: TestClient):
        response = client.put(
            "/items/5",
            json={},
        )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  5. fastapi/exceptions.py

            *,
            endpoint_ctx: Optional[EndpointContext] = None,
        ) -> None:
            super().__init__(errors, endpoint_ctx=endpoint_ctx)
    
    
    class ResponseValidationError(ValidationException):
        def __init__(
            self,
            errors: Sequence[Any],
            *,
            body: Any = None,
            endpoint_ctx: Optional[EndpointContext] = None,
        ) -> None:
            super().__init__(errors, endpoint_ctx=endpoint_ctx)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/extra-models.md

    Die Reduzierung von Code-Verdoppelung ist eine der Kernideen von **FastAPI**.
    
    Da die Verdopplung von Code die Wahrscheinlichkeit von Fehlern, Sicherheitsproblemen, Problemen mit der Desynchronisation des Codes (wenn Sie an einer Stelle, aber nicht an der anderen aktualisieren) usw. erhöht.
    
    Und diese Modelle teilen alle eine Menge der Daten und verdoppeln Attributnamen und -typen.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 8K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_body_nested_models/test_tutorial001_tutorial002_tutorial003.py

                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
                "tags": ["foo", "bar", "foo"],
            },
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "item_id": 123,
            "item": {
                "name": "Foo",
                "description": "A very nice Item",
                "price": 35.4,
                "tax": 3.2,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_body_nested_models/test_tutorial007.py

        assert response.json() == {
            "name": "Special Offer",
            "description": None,
            "price": 38.6,
            "items": [
                {
                    "name": "Foo",
                    "description": None,
                    "price": 35.4,
                    "tax": None,
                    "tags": [],
                    "images": [
                        {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  9. docs/de/docs/index.md

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    
    
    @app.put("/items/{item_id}")
    def update_item(item_id: int, item: Item):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 09:39:53 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  10. README.md

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    
    
    @app.put("/items/{item_id}")
    def update_item(item_id: int, item: Item):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 25 11:01:37 UTC 2025
    - 26.4K bytes
    - Viewed (0)
Back to top