Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 158 for declares (0.05 sec)

  1. docs/en/docs/tutorial/dependencies/sub-dependencies.md

    {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[13] *}
    
    Let's focus on the parameters declared:
    
    * Even though this function is a dependency ("dependable") itself, it also declares another dependency (it "depends" on something else).
        * It depends on the `query_extractor`, and assigns the value returned by it to the parameter `q`.
    * It also declares an optional `last_query` cookie, as a `str`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  2. docs/es/docs/tutorial/query-params.md

    Puedes declarar múltiples parámetros de path y de query al mismo tiempo, **FastAPI** sabe cuál es cuál.
    
    Y no tienes que declararlos en un orden específico.
    
    Serán detectados por nombre:
    
    {* ../../docs_src/query_params/tutorial004_py310.py hl[6,8] *}
    
    ## Parámetros de query requeridos { #required-query-parameters }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/body.md

    ```JSON
    {
        "name": "Foo",
        "price": 45.2
    }
    ```
    
    ## Declare it as a parameter { #declare-it-as-a-parameter }
    
    To add it to your *path operation*, declare it the same way you declared path and query parameters:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[16] *}
    
    ...and declare its type as the model you created, `Item`.
    
    ## Results { #results }
    
    With just that Python type declaration, **FastAPI** will:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/response-model.md

    ## `response_model` Parameter { #response-model-parameter }
    
    There are some cases where you need or want to return some data that is not exactly what the type declares.
    
    For example, you could want to **return a dictionary** or a database object, but **declare it as a Pydantic model**. This way the Pydantic model would do all the data documentation, validation, etc. for the object that you returned (e.g. a dictionary or database object).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/query-params-str-validations.md

    ```Python
    q: Annotated[str | None, Query(min_length=3)] = None
    ```
    
    So, when you need to declare a value as required while using `Query`, you can simply not declare a default value:
    
    {* ../../docs_src/query_params_str_validations/tutorial006_an_py39.py hl[9] *}
    
    ### Required, can be `None` { #required-can-be-none }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/sql-databases.md

    Because each SQLModel model is also a Pydantic model, you can use it in the same **type annotations** that you could use Pydantic models.
    
    For example, if you declare a parameter of type `Hero`, it will be read from the **JSON body**.
    
    The same way, you can declare it as the function's **return type**, and then the shape of the data will show up in the automatic API docs UI.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 02 05:06:56 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       * (https://r.android.com/47508). We *would* need to worry for J2KT, whose own concurrency support
       * is evolving (b/381065164, b/458160722), but this class is @J2ktIncompatible.
       *
       * 2. The superclass toArray() method declares the more general return type `@Nullable Object[]`,
       * but we know that our values will never be `null`.
       */
    
      @Override
      public Object[] toArray() {
        return snapshotElementsToList().toArray();
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 08 22:42:14 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  8. doc/godebug.md

    controlling whether `panic(nil)` is allowed;
    it defaults to `panicnil=0`, making `panic(nil)` a run-time error.
    Using `panicnil=1` restores the behavior of Go 1.20 and earlier.
    
    When compiling a work module or workspace that declares
    an older Go version, the Go toolchain amends its defaults
    to match that older Go version as closely as possible.
    For example, when a Go 1.21 toolchain compiles a program,
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Wed Dec 03 00:18:09 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  9. doc/go_spec.html

    Every identifier in a program must be declared.
    No identifier may be declared twice in the same block, and
    no identifier may be declared in both the file and package block.
    </p>
    
    <p>
    The <a href="#Blank_identifier">blank identifier</a> may be used like any other identifier
    in a declaration, but it does not introduce a binding and thus is not declared.
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 02 23:07:19 UTC 2025
    - 286.5K bytes
    - Viewed (1)
  10. docs/es/docs/tutorial/body.md

    {* ../../docs_src/body/tutorial001_py310.py hl[2] *}
    
    ## Crea tu modelo de datos { #create-your-data-model }
    
    Luego, declaras tu modelo de datos como una clase que hereda de `BaseModel`.
    
    Usa tipos estándar de Python para todos los atributos:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[5:9] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.6K bytes
    - Viewed (0)
Back to top