Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for repetition (0.07 sec)

  1. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    <img src="/img/tutorial/dependencies/image02.png">
    
    ## Shortcut { #shortcut }
    
    But you see that we are having some code repetition here, writing `CommonQueryParams` twice:
    
    //// tab | Python 3.8+
    
    ```Python
    commons: Annotated[CommonQueryParams, Depends(CommonQueryParams)]
    ```
    
    ////
    
    //// tab | Python 3.8+ non-Annotated
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/dependencies/index.md

    * Have shared logic (the same code logic again and again).
    * Share database connections.
    * Enforce security, authentication, role requirements, etc.
    * And many other things...
    
    All these, while minimizing code repetition.
    
    ## First Steps { #first-steps }
    
    Let's see a very simple example. It will be so simple that it is not very useful, for now.
    
    But this way we can focus on how the **Dependency Injection** system works.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  3. docs/en/docs/alternatives.md

    It has an integrated dependency injection system, inspired by Angular 2. It requires pre-registering the "injectables" (like all the other dependency injection systems I know), so, it adds to the verbosity and code repetition.
    
    As the parameters are described with TypeScript types (similar to Python type hints), editor support is quite good.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/EqualsTester.java

     * </ul>
     *
     * @author Jim McMaster
     * @author Jige Yu
     * @since 10.0
     */
    @GwtCompatible
    @NullMarked
    public final class EqualsTester {
      private static final int REPETITIONS = 3;
    
      private final List<List<Object>> equalityGroups = new ArrayList<>();
      private final RelationshipTester.ItemReporter itemReporter;
    
      /** Constructs an empty EqualsTester instance */
      public EqualsTester() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/EquivalenceTester.java

     * to explicitly add another equivalence group.
     *
     * @author Gregory Kick
     * @since 10.0
     */
    @GwtCompatible
    @NullMarked
    public final class EquivalenceTester<T> {
      private static final int REPETITIONS = 3;
    
      private final Equivalence<? super T> equivalence;
      private final RelationshipTester<T> delegate;
      private final List<T> items = new ArrayList<>();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

     * </ul>
     *
     * @author Jim McMaster
     * @author Jige Yu
     * @since 10.0
     */
    @GwtCompatible
    @NullMarked
    public final class EqualsTester {
      private static final int REPETITIONS = 3;
    
      private final List<List<Object>> equalityGroups = new ArrayList<>();
      private final RelationshipTester.ItemReporter itemReporter;
    
      /** Constructs an empty EqualsTester instance */
      public EqualsTester() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  7. docs/en/docs/release-notes.md

    * Update [SQL tutorial with SQLAlchemy, using `Depends` to improve editor support and reduce code repetition](https://fastapi.tiangolo.com/tutorial/sql-databases/). PR [#52](https://github.com/tiangolo/fastapi/pull/52).
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Sep 05 12:48:45 UTC 2025
    - 544.1K bytes
    - Viewed (0)
Back to top