Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 118 for decorate (0.1 sec)

  1. fastapi/routing.py

            def decorator(func: DecoratedCallable) -> DecoratedCallable:
                self.add_route(
                    path,
                    func,
                    methods=methods,
                    name=name,
                    include_in_schema=include_in_schema,
                )
                return func
    
            return decorator
    
        def add_api_route(
            self,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 172.1K bytes
    - Viewed (0)
  2. fastapi/applications.py

            ```
            """
    
            def decorator(func: DecoratedCallable) -> DecoratedCallable:
                self.add_api_websocket_route(
                    path,
                    func,
                    name=name,
                    dependencies=dependencies,
                )
                return func
    
            return decorator
    
        def include_router(
            self,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:52:31 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  3. CHANGELOG/CHANGELOG-1.5.md

        allowing two Stateful Set pods to share the same persistent volume which could lead to data
        corruption [#37263](https://github.com/kubernetes/kubernetes/pull/37263)
    
    
    * Allow anonymous API server access, decorate authenticated users with system:authenticated group ([#32386](https://github.com/kubernetes/kubernetes/pull/32386), [@liggitt](https://github.com/liggitt))
    Registered: Fri Nov 01 09:05:11 UTC 2024
    - Last Modified: Thu Dec 24 02:28:26 UTC 2020
    - 136.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ForwardingObject.java

    import java.io.Serializable;
    
    /**
     * An abstract base class for implementing the <a
     * href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>. The {@link
     * #delegate()} method must be overridden to return the instance being decorated.
     *
     * <p>This class does <i>not</i> forward the {@code hashCode} and {@code equals} methods through to
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 29 19:42:21 UTC 2021
    - 3K bytes
    - Viewed (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/DecorateReleaseNotes.java

     * Takes a rendered release notes HTML file and decorates it with extra elements/content/links.
     */
    @CacheableTask
    public abstract class DecorateReleaseNotes extends DefaultTask {
        /**
         * The rendered HTML release notes that need decoration.
         */
        @InputFile
        @PathSensitive(PathSensitivity.NONE)
        public abstract RegularFileProperty getHtmlFile();
    
        /**
         * The decorated HTML file
         */
        @OutputFile
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Sep 28 06:35:15 UTC 2021
    - 4.1K bytes
    - Viewed (0)
  6. docs/fr/docs/tutorial/first-steps.md

    /// info | "`@décorateur` Info"
    
    Cette syntaxe `@something` en Python est appelée un "décorateur".
    
    Vous la mettez au dessus d'une fonction. Comme un joli chapeau décoratif (j'imagine que ce terme vient de là 🤷🏻‍♂).
    
    Un "décorateur" prend la fonction en dessous et en fait quelque chose.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/first-steps.md

    You put it on top of a function. Like a pretty decorative hat (I guess that's where the term came from).
    
    A "decorator" takes the function below and does something with it.
    
    In our case, this decorator tells **FastAPI** that the function below corresponds to the **path** `/` with an **operation** `get`.
    
    It is the "**path operation decorator**".
    
    ///
    
    You can also use the other operations:
    
    * `@app.post()`
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 11:48:16 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. docs/fr/docs/features.md

    * **Renouvelable**:
        * Pydantic permet de définir de nouveaux types de données ou vous pouvez étendre la validation avec des méthodes sur un modèle décoré avec le<abbr title="en anglais: validator decorator"> décorateur de validation</abbr>
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. tests/test_extra_routes.py

    @app.api_route("/items/{item_id}", methods=["GET"])
    def get_items(item_id: str):
        return {"item_id": item_id}
    
    
    def get_not_decorated(item_id: str):
        return {"item_id": item_id}
    
    
    app.add_api_route("/items-not-decorated/{item_id}", get_not_decorated)
    
    
    @app.delete("/items/{item_id}")
    def delete_item(item_id: str, item: Item):
        return {"item_id": item_id, "item": item}
    
    
    @app.head("/items/{item_id}")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  10. tests/test_dependency_overrides.py

        response = client.get("/decorator-depends/?q=foo")
        assert response.status_code == 200
        assert response.json() == {"in": "decorator-depends"}
    
    
    def test_decorator_depends_q_foo_skip_100_limit_200():
        response = client.get("/decorator-depends/?q=foo&skip=100&limit=200")
        assert response.status_code == 200
        assert response.json() == {"in": "decorator-depends"}
    
    
    def test_router_depends():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top