Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 490 for declares (0.07 seconds)

  1. 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:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

     * <p>The declaration methods must be public.
     */
    @AndroidIncompatible // only used by android incompatible tests.
    @NullUnmarked
    abstract class SubtypeTester implements Cloneable {
    
      /** Annotates a public method that declares subtype assertion. */
      @RequiredModifiers(modifier = Modifier.PUBLIC)
      @Retention(RetentionPolicy.RUNTIME)
      @Target(ElementType.METHOD)
      @Keep
      @interface TestSubtype {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Nov 25 23:29:58 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

            assertEquals(boolean.class, m1.getReturnType());
            assertEquals(0, m1.getParameterCount());
            assertEquals(0, m1.getExceptionTypes().length);
    
            // overlaps(SmbResourceLocator): boolean, declares CIFSException
            Method m2 = clazz.getMethod("overlaps", SmbResourceLocator.class);
            assertEquals(boolean.class, m2.getReturnType());
            assertEquals(1, m2.getParameterCount());
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  4. docs/fr/docs/python-types.md

    {*../../docs_src/python_types/tutorial004.py hl[2] *}
    
    ## Déclarer des types
    
    Vous venez de voir là où les types sont généralement déclarés : dans les paramètres de fonctions.
    
    C'est aussi ici que vous les utiliseriez avec **FastAPI**.
    
    ### Types simples
    
    Vous pouvez déclarer tous les types  de Python, pas seulement `str`.
    
    Comme par exemple :
    
    * `int`
    * `float`
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Nov 09 16:39:20 GMT 2024
    - 10K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

              && method.getName().startsWith("test")
              /*
               * When we block access to AtomicReferenceFieldUpdater, we can't even reflect on
               * AbstractFuture, since it declares methods that use that type in their signatures.
               */
              && !method.getName().equals("testFutures_nullChecks")) {
            suite.addTest(
                TestSuite.createTest(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/security/first-steps.md

    ///
    
    This parameter doesn't create that endpoint / *path operation*, but declares that the URL `/token` will be the one that the client should use to get the token. That information is used in OpenAPI, and then in the interactive API documentation systems.
    
    We will soon also create the actual path operation.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  7. 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).
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 15.5K bytes
    - Click Count (0)
  8. 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 }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  9. doc/asm.html

    ...
    DATA divtab&lt;&gt;+0x3c(SB)/4, $0x81828384
    GLOBL divtab&lt;&gt;(SB), RODATA, $64
    
    GLOBL runtime·tlsoffset(SB), NOPTR, $4
    </pre>
    
    <p>
    declares and initializes <code>divtab&lt;&gt;</code>, a read-only 64-byte table of 4-byte integer values,
    and declares <code>runtime·tlsoffset</code>, a 4-byte, implicitly zeroed variable that
    contains no pointers.
    </p>
    
    <p>
    There may be one or two arguments to the directives.
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Nov 14 19:09:46 GMT 2025
    - 36.5K bytes
    - Click Count (0)
  10. 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.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 02 05:06:56 GMT 2025
    - 15.8K bytes
    - Click Count (0)
Back to Top