Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for images (0.19 sec)

  1. docs/ru/docs/tutorial/dependencies/classes-as-dependencies.md

    <img src="/img/tutorial/dependencies/image02.png">
    
    ## Сокращение
    
    Но вы видите, что здесь мы имеем некоторое повторение кода, дважды написав `CommonQueryParams`:
    
    === "Python 3.6+ без Annotated"
    
        !!! tip "Подсказка"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jan 12 11:12:19 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/dependencies/classes-as-dependencies.md

    {!../../../docs_src/dependencies/tutorial003.py!}
    ```
    
    しかし、型を宣言することは推奨されています。そうすれば、エディタは`commons`のパラメータとして何が渡されるかを知ることができ、コードの補完や型チェックなどを行うのに役立ちます:
    
    <img src="https://fastapi.tiangolo.com/img/tutorial/dependencies/image02.png">
    
    ## ショートカット
    
    しかし、ここでは`CommonQueryParams`を2回書くというコードの繰り返しが発生していることがわかります:
    
    ```Python
    commons: CommonQueryParams = Depends(CommonQueryParams)
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 15 16:08:16 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/dependencies/classes-as-dependencies.md

    Es wird jedoch empfohlen, den Typ zu deklarieren, da Ihr Editor so weiß, was als Parameter `commons` übergeben wird, und Ihnen dann bei der Codevervollständigung, Typprüfungen, usw. helfen kann:
    
    <img src="/img/tutorial/dependencies/image02.png">
    
    ## Abkürzung
    
    Aber Sie sehen, dass wir hier etwas Codeduplizierung haben, indem wir `CommonQueryParams` zweimal schreiben:
    
    === "Python 3.8+"
    
        ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:01:58 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    But declaring the type is encouraged as that way your editor will know what will be passed as the parameter `commons`, and then it can help you with code completion, type checks, etc:
    
    <img src="/img/tutorial/dependencies/image02.png">
    
    ## Shortcut
    
    But you see that we are having some code repetition here, writing `CommonQueryParams` twice:
    
    === "Python 3.8+"
    
        ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.4K bytes
    - Viewed (0)
Back to top