Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for annotated (0.48 sec)

  1. docs/en/docs/release-notes.md

    ```
    
    ...the bigger the codebase, the more noticeable it is.
    
    Now you can create an annotated dependency once, like this:
    
    ```Python
    CurrentUser = Annotated[User, Depends(get_current_user)]
    ```
    
    And then you can reuse this `Annotated` dependency:
    
    ```Python
    CurrentUser = Annotated[User, Depends(get_current_user)]
    
    
    @app.get("/items/")
    def read_items(user: CurrentUser):
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Sep 05 12:48:45 UTC 2025
    - 544.1K bytes
    - Viewed (0)
Back to top