Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for syntaxe (0.05 sec)

  1. tests/test_compat.py

        assert isinstance(result, list)
    
    
    @needs_py310
    def test_serialize_sequence_value_with_optional_list_pipe_union():
        """Test that serialize_sequence_value handles optional lists correctly (with new syntax)."""
        from fastapi._compat import v2
    
        field_info = FieldInfo(annotation=list[str] | None)
        field = v2.ModelField(name="items", field_info=field_info)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/response-model.md

    Das trifft auch auf `response_model_by_alias` zu, welches ähnlich funktioniert.
    
    ///
    
    {* ../../docs_src/response_model/tutorial005_py310.py hl[29,35] *}
    
    /// tip | Tipp
    
    Die Syntax `{"name", "description"}` erzeugt ein `set` mit diesen zwei Werten.
    
    Äquivalent zu `set(["name", "description"])`.
    
    ///
    
    #### `list`en statt `set`s verwenden { #using-lists-instead-of-sets }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  3. docs/de/docs/index.md

    ### Zusammenfassung { #recap }
    
    Zusammengefasst deklarieren Sie **einmal** die Typen von Parametern, Body, usw. als Funktionsparameter.
    
    Das machen Sie mit modernen Standard-Python-Typen.
    
    Sie müssen keine neue Syntax, Methoden oder Klassen einer bestimmten Bibliothek usw. lernen.
    
    Nur Standard-**Python**.
    
    Zum Beispiel für ein `int`:
    
    ```Python
    item_id: int
    ```
    
    oder für ein komplexeres `Item`-Modell:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 09:39:53 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  4. docs/en/docs/index.md

    ### Recap { #recap }
    
    In summary, you declare **once** the types of parameters, body, etc. as function parameters.
    
    You do that with standard modern Python types.
    
    You don't have to learn a new syntax, the methods or classes of a specific library, etc.
    
    Just standard **Python**.
    
    For example, for an `int`:
    
    ```Python
    item_id: int
    ```
    
    or for a more complex `Item` model:
    
    ```Python
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 25 11:01:37 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  5. README.md

    ### Recap
    
    In summary, you declare **once** the types of parameters, body, etc. as function parameters.
    
    You do that with standard modern Python types.
    
    You don't have to learn a new syntax, the methods or classes of a specific library, etc.
    
    Just standard **Python**.
    
    For example, for an `int`:
    
    ```Python
    item_id: int
    ```
    
    or for a more complex `Item` model:
    
    ```Python
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 25 11:01:37 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  6. docs/en/docs/release-notes.md

    ### Refactors
    
    * ♻️ Upgrade internal syntax to Python 3.9+ 🎉. PR [#14564](https://github.com/fastapi/fastapi/pull/14564) by [@tiangolo](https://github.com/tiangolo).
    
    ### Docs
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top