Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for Frick (0.49 sec)

  1. docs/en/docs/advanced/dataclasses.md

    !!! info
        Keep in mind that dataclasses can't do everything Pydantic models can do.
    
        So, you might still need to use Pydantic models.
    
        But if you have a bunch of dataclasses laying around, this is a nice trick to use them to power a web API using FastAPI. 🤓
    
    ## Dataclasses in `response_model`
    
    You can also use `dataclasses` in the `response_model` parameter:
    
    ```Python hl_lines="1  7-13  19"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  2. build-logic/jvm/src/main/kotlin/gradlebuild.launchable-jar.gradle.kts

    val startScripts = tasks.register<GradleStartScriptGenerator>("startScripts") {
        startScriptsDir = layout.buildDirectory.dir("startScripts")
        launcherJar.from(tasks.jar)
        agentJars.from(agentsClasspath)
        // The trick below is to use the templates from the current code instead of the wrapper. It does not cover the case where the generation logic is updated though.
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Wed Feb 28 23:38:57 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  3. docs/em/docs/advanced/settings.md

        end
    
        rect rgba(0, 255, 0, .1)
            code ->> function: say_hi(name="Rick")
            function ->> execute: execute function code
            execute ->> code: return the result
        end
    
        rect rgba(0, 255, 0, .1)
            code ->> function: say_hi(name="Rick", salutation="Mr.")
            function ->> execute: execute function code
            execute ->> code: return the result
        end
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/query-params-str-validations.md

    ```Python
    q: Annotated[str, Query(default="rick")] = "morty"
    ```
    
    ...потому что нельзя однозначно определить, что именно должно быть значением по умолчанию: `"rick"` или `"morty"`.
    
    Вам следует использовать (предпочтительно):
    
    ```Python
    q: Annotated[str, Query()] = "rick"
    ```
    
    ...или как в старом коде, который вам может попасться:
    
    ```Python
    q: str = Query(default="rick")
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 38K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/query-params-str-validations.md

    ```Python
    q: Annotated[str, Query(default="rick")] = "morty"
    ```
    
    ... denn es wird nicht klar, ob der Defaultwert `"rick"` oder `"morty"` sein soll.
    
    Sie würden also (bevorzugt) schreiben:
    
    ```Python
    q: Annotated[str, Query()] = "rick"
    ```
    
    In älterem Code werden Sie auch finden:
    
    ```Python
    q: str = Query(default="rick")
    ```
    
    ### Vorzüge von `Annotated`
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 17:58:59 GMT 2024
    - 27.7K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/path-params-numeric-validations.md

        ```
    
    ## Sortieren Sie die Parameter wie Sie möchten: Tricks
    
    !!! tip "Tipp"
        Wenn Sie `Annotated` verwenden, ist das folgende nicht so wichtig / nicht notwendig.
    
    Hier ein **kleiner Trick**, der nützlich sein kann, aber Sie werden ihn nicht oft brauchen.
    
    Wenn Sie eines der folgenden Dinge tun möchten:
    
    * den `q`-Parameter ohne `Query` oder irgendeinem Defaultwert deklarieren
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 17:59:29 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/dependencies/index.md

        Das ist schlicht Standard-Python, es wird als „Typalias“ bezeichnet und ist eigentlich nicht **FastAPI**-spezifisch.
    
        Da **FastAPI** jedoch auf Standard-Python, einschließlich `Annotated`, basiert, können Sie diesen Trick in Ihrem Code verwenden. 😎
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:01:10 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  8. docs/en/docs/release-notes.md

    data = {
        "plumbus": {"description": "Freshly pickled plumbus", "owner": "Morty"},
        "portal-gun": {"description": "Gun to create portals", "owner": "Rick"},
    }
    
    
    class OwnerError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except OwnerError as e:
            raise HTTPException(status_code=400, detail=f"Owner error: {e}")
    
    
    @app.get("/items/{item_id}")
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Apr 28 00:28:00 GMT 2024
    - 385.5K bytes
    - Viewed (1)
  9. src/main/webapp/css/admin/bootstrap.min.css.map

     // IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built\n  // without `<ul>`s. The `::before` pseudo-element generates an element\n  // *within* the .breadcrumb-item and thereby inherits the `text-decoration`.\n  //\n  // To trick IE into suppressing the underline, we give the pseudo-element an\n  // underline and then immediately remove it.\n  + .breadcrumb-item:hover::before {\n    text-decoration: underline;\n  }\n  // stylelint-disable-next-line no-duplicate-selectors\n...
    Plain Text
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Fri Feb 07 10:28:50 GMT 2020
    - 626.8K bytes
    - Viewed (0)
  10. src/main/webapp/css/bootstrap.min.css.map

     // IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built\n  // without `<ul>`s. The `::before` pseudo-element generates an element\n  // *within* the .breadcrumb-item and thereby inherits the `text-decoration`.\n  //\n  // To trick IE into suppressing the underline, we give the pseudo-element an\n  // underline and then immediately remove it.\n  + .breadcrumb-item:hover::before {\n    text-decoration: underline;\n  }\n  // stylelint-disable-next-line no-duplicate-selectors\n...
    Plain Text
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 13 04:21:06 GMT 2020
    - 626.8K bytes
    - Viewed (0)
Back to top