Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 293 for Decorators (0.14 sec)

  1. docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    In some cases you don't really need the return value of a dependency inside your *path operation function*.
    
    Or the dependency doesn't return a value.
    
    But you still need it to be executed/solved.
    
    For those cases, instead of declaring a *path operation function* parameter with `Depends`, you can add a `list` of `dependencies` to the *path operation decorator*.
    
    ## Add `dependencies` to the *path operation decorator*
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    # path operationデコレータの依存関係
    
    場合によっては*path operation関数*の中で依存関係の戻り値を本当に必要としないこともあります。
    
    もしくは、依存関係が値を返さない場合もあります。
    
    しかし、それでも実行・解決する必要があります。
    
    このような場合、*path operation関数*のパラメータを`Depends`で宣言する代わりに、*path operation decorator*に`dependencies`の`list`を追加することができます。
    
    ##  *path operationデコレータ*への`dependencies`の追加
    
    *path operationデコレータ*はオプショナルの引数`dependencies`を受け取ります。
    
    それは`Depends()`の`list`であるべきです:
    
    ```Python hl_lines="17"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Jan 15 16:44:28 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    Nils Lindemann <******@****.***> 1711822156 +0100
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 18:09:16 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    Sebastián Ramírez <******@****.***> 1652313976 -0500
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 12 00:06:16 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    김명기 <******@****.***> 1707659385 +0900
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Feb 11 13:49:45 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    LeeeeT <******@****.***> 1680341164 +0300
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Apr 01 09:26:04 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    Anton Yakovlev <******@****.***> 1712418235 +0300
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Apr 06 15:43:55 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/admission/decorator.go

    limitations under the License.
    */
    
    package admission
    
    type Decorator interface {
    	Decorate(handler Interface, name string) Interface
    }
    
    type DecoratorFunc func(handler Interface, name string) Interface
    
    func (d DecoratorFunc) Decorate(handler Interface, name string) Interface {
    	return d(handler, name)
    }
    
    type Decorators []Decorator
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 13:54:31 UTC 2018
    - 1.1K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/dependencies/global-dependencies.md

    # Global Dependencies
    
    For some types of applications you might want to add dependencies to the whole application.
    
    Similar to the way you can [add `dependencies` to the *path operation decorators*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, you can add them to the `FastAPI` application.
    
    In that case, they will be applied to all the *path operations* in the application:
    
    === "Python 3.9+"
    
        ```Python hl_lines="16"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/RelevantMethods.java

        final List<ServiceMethod> decorators;
        final List<ServiceMethod> factories;
        final List<ServiceMethod> configurers;
    
        private RelevantMethods(List<ServiceMethod> decorators, List<ServiceMethod> factories, List<ServiceMethod> configurers) {
            this.decorators = decorators;
            this.factories = factories;
            this.configurers = configurers;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:53:25 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top