Search Options

Results per page
Sort
Preferred Languages
Advance

Results 441 - 450 of 617 for Annotated (0.07 sec)

  1. cni/pkg/nodeagent/net.go

    		return err
    	}
    
    	// For *any* failures after calling `CreateInpodRules`, we must return PartialAdd error.
    	// The pod was injected with iptables rules, so it must be annotated as "inpod" - even if
    	// the following fails.
    	// This is so that if it is removed from the mesh, the inpod rules will unconditionally
    	// be removed.
    
    	log.Debug("notifying subscribed node proxies")
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Oct 21 16:48:55 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/body-nested-models.md

    And whenever you output that data, even if the source had duplicates, it will be output as a set of unique items.
    
    And it will be annotated / documented accordingly too.
    
    ## Nested Models
    
    Each attribute of a Pydantic model has a type.
    
    But that type can itself be another Pydantic model.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/response-model.md

    So, **FastAPI** will take care of filtering out all the data that is not declared in the output model (using Pydantic).
    
    ### `response_model` or Return Type
    
    In this case, because the two models are different, if we annotated the function return type as `UserOut`, the editor and tools would complain that we are returning an invalid type, as those are different classes.
    
    That's why in this example we have to declare it in the `response_model` parameter.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  4. docs/en/docs/release-notes.md

    ```
    
    ...the bigger the codebase, the more noticeable it is.
    
    Now you can create an annotated dependency once, like this:
    
    ```Python
    CurrentUser = Annotated[User, Depends(get_current_user)]
    ```
    
    And then you can reuse this `Annotated` dependency:
    
    ```Python
    CurrentUser = Annotated[User, Depends(get_current_user)]
    
    
    @app.get("/items/")
    def read_items(user: CurrentUser):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Nov 01 11:25:57 UTC 2024
    - 460.3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       * {@code C}
       *
       * <ul>
       *   <li>All visible static methods are checked such that passing null for any parameter that's
       *       not annotated nullable (according to the rules of {@link NullPointerTester}) should throw
       *       {@link NullPointerException}.
       *   <li>If there is any visible constructor or visible static factory method declared by the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/sql-databases.md

    Vamos criar uma **dependência** do FastAPI com `yield` que fornecerá uma nova `Session` para cada requisição. Isso é o que garante que usamos uma única sessão por requisição. 🤓
    
    Então, criamos uma dependência `Annotated` chamada `SessionDep` para simplificar o restante do código que usará essa dependência.
    
    {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[25:30] hl[25:27,30] *}
    
    ### Criar Tabelas de Banco de Dados na Inicialização
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:25:29 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       * CollectionRemoveTester.testRemove_nullAllowed, but it's not clear that it's
       * a good policy, especially because, in order for the test to pass, the
       * parameter must be misleadingly annotated as @Nullable. I suspect that
       * we'll want to remove @Nullable, add an eager checkNotNull, and loosen up
       * testRemove_nullAllowed.
       */
      @CanIgnoreReturnValue
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

    /**
     * A test utility that verifies that your methods and constructors throw {@link
     * NullPointerException} or {@link UnsupportedOperationException} whenever null is passed to a
     * parameter whose declaration or type isn't annotated with an annotation with the simple name
     * {@code Nullable}, {@code CheckForNull}, {@code NullableType}, or {@code NullableDecl}.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/sql-databases.md

    We will create a FastAPI **dependency** with `yield` that will provide a new `Session` for each request. This is what ensures that we use a single session per request. 🤓
    
    Then we create an `Annotated` dependency `SessionDep` to simplify the rest of the code that will use this dependency.
    
    {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[25:30]  hl[25:27,30] *}
    
    ### Create Database Tables on Startup
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       * {@code C}
       *
       * <ul>
       *   <li>All visible static methods are checked such that passing null for any parameter that's
       *       not annotated nullable (according to the rules of {@link NullPointerTester}) should throw
       *       {@link NullPointerException}.
       *   <li>If there is any visible constructor or visible static factory method declared by the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top