Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 569 for prepends (0.18 sec)

  1. docs/ru/docs/tutorial/dependencies/index.md

        ```Python hl_lines="15  20"
        {!> ../../../docs_src/dependencies/tutorial001.py!}
        ```
    
    `Depends` работает немного иначе. Вы передаёте в `Depends` одиночный параметр, который будет похож на функцию.
    
    Вы **не вызываете его** на месте (не добавляете скобочки в конце: 👎 *your_best_func()*👎), просто передаёте как параметр в `Depends()`.
    
    И потом функция берёт параметры так же, как *функция обработки пути*.
    
    !!! tip "Подсказка"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/dependencies/index.md

        ```
    
    Obwohl Sie `Depends` in den Parametern Ihrer Funktion genauso verwenden wie `Body`, `Query`, usw., funktioniert `Depends` etwas anders.
    
    Sie übergeben `Depends` nur einen einzigen Parameter.
    
    Dieser Parameter muss so etwas wie eine Funktion sein.
    
    Sie **rufen diese nicht direkt auf** (fügen Sie am Ende keine Klammern hinzu), sondern übergeben sie einfach als Parameter an `Depends()`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 18:01:10 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/util/apiclient/dryrunclient.go

    	fullReactorChain := append(opts.PrependReactors, defaultReactorChain...)
    	fullReactorChain = append(fullReactorChain, opts.AppendReactors...)
    
    	// Prepend the reaction chain with our reactors. Important, these MUST be prepended; not appended due to how the fake clientset works by default
    	client.Fake.ReactionChain = append(fullReactorChain, client.Fake.ReactionChain...)
    	return client
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 21 09:49:59 UTC 2022
    - 10.3K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/dependencies/index.md

        ```
    
    Although you use `Depends` in the parameters of your function the same way you use `Body`, `Query`, etc, `Depends` works a bit differently.
    
    You only give `Depends` a single parameter.
    
    This parameter must be something like a function.
    
    You **don't call it** directly (don't add the parenthesis at the end), you just pass it as a parameter to `Depends()`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/incremental/GroovyJavaJointIncrementalCompilationIntegrationTest.groovy

            'Change Groovy files which Java depends on' | ['G', 'J', 'J_G']     | ['G.changed', 'J', 'J_G']     | 'Incremental compilation of' | ['G', 'J_G']          | ['G.changed', 'J', 'J_G']     | 'UP-TO-DATE'                 | []
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  6. docs/em/docs/advanced/security/oauth2-scopes.md

    👉, 👥 🗄 & ⚙️ `Security` ⚪️➡️ `fastapi`.
    
    👆 💪 ⚙️ `Security` 📣 🔗 (💖 `Depends`), ✋️ `Security` 📨 🔢 `scopes` ⏮️ 📇 ↔ (🎻).
    
    👉 💼, 👥 🚶‍♀️ 🔗 🔢 `get_current_active_user` `Security` (🎏 🌌 👥 🔜 ⏮️ `Depends`).
    
    ✋️ 👥 🚶‍♀️ `list` ↔, 👉 💼 ⏮️ 1️⃣ ↔: `items` (⚫️ 💪 ✔️ 🌅).
    
    & 🔗 🔢 `get_current_active_user` 💪 📣 🎧-🔗, 🚫 🕴 ⏮️ `Depends` ✋️ ⏮️ `Security`. 📣 🚮 👍 🎧-🔗 🔢 (`get_current_user`), & 🌖 ↔ 📄.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jan 11 21:21:35 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/dependencies/index.md

        {!> ../../../docs_src/dependencies/tutorial001.py!}
        ```
    
    비록 `Body`, `Query` 등을 사용하는 것과 같은 방식으로 여러분의 함수의 매개변수에 있는 `Depends`를 사용하지만, `Depends`는 약간 다르게 작동합니다.
    
    `Depends`에 단일 매개변수만 전달했습니다.
    
    이 매개변수는 함수같은 것이어야 합니다.
    
    여러분은 직접 **호출하지 않았습니다** (끝에 괄호를 치지 않았습니다), 단지 `Depends()`에 매개변수로 넘겨 줬을 뿐입니다.
    
    그리고 그 함수는 *경로 작동 함수*가 작동하는 것과 같은 방식으로 매개변수를 받습니다.
    
    !!! tip "팁"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  8. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildOperationsIntegrationTest.groovy

                buildFile << """
                    allprojects {
                        apply plugin: 'java'
                    }
                """
            }
            includedBuilds << buildC
            buildA.buildFile.prepend("""
                buildscript {
                    dependencies {
                        classpath 'org.test:buildB:1.0'
                        classpath 'org.test:buildC:1.0'
                    }
                }
            """)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 13:43:40 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  9. tests/test_security_oauth2.py

    
    @app.post("/login")
    # Here we use string annotations to test them
    def login(form_data: "OAuth2PasswordRequestFormStrict" = Depends()):
        return form_data
    
    
    @app.get("/users/me")
    # Here we use string annotations to test them
    def read_current_user(current_user: "User" = Depends(get_current_user)):
        return current_user
    
    
    client = TestClient(app)
    
    
    def test_security_oauth2():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. tests/test_security_oauth2_optional_description.py

            return None
        user = User(username=oauth_header)
        return user
    
    
    @app.post("/login")
    def login(form_data: OAuth2PasswordRequestFormStrict = Depends()):
        return form_data
    
    
    @app.get("/users/me")
    def read_users_me(current_user: Optional[User] = Depends(get_current_user)):
        if current_user is None:
            return {"msg": "Create an account first"}
        return current_user
    
    
    client = TestClient(app)
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top