Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 161 for stub (0.17 sec)

  1. tests/test_dependency_overrides.py

    client = TestClient(app)
    
    
    async def overrider_dependency_simple(q: Optional[str] = None):
        return {"q": q, "skip": 5, "limit": 10}
    
    
    async def overrider_sub_dependency(k: str):
        return {"k": k}
    
    
    async def overrider_dependency_with_sub(msg: dict = Depends(overrider_sub_dependency)):
        return msg
    
    
    def test_main_depends():
        response = client.get("/main-depends/")
        assert response.status_code == 422
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleBuildDocumentationPlugin.java

                // Javadocs reference goes into javadoc/
                task.from(extension.getJavadocs().getRenderedDocumentation(), sub -> sub.into("javadoc"));
    
                // Dokka Kotlin DSL reference goes into kotlin-dsl/
                task.from(extension.getKotlinDslReference().getRenderedDocumentation(), sub -> sub.into("kotlin-dsl"));
    
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Apr 17 20:04:00 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  3. fastapi/dependencies/utils.py

        dependency_cache = dependency_cache or {}
        sub_dependant: Dependant
        for sub_dependant in dependant.dependencies:
            sub_dependant.call = cast(Callable[..., Any], sub_dependant.call)
            sub_dependant.cache_key = cast(
                Tuple[Callable[..., Any], Tuple[str]], sub_dependant.cache_key
            )
            call = sub_dependant.call
            use_sub_dependant = sub_dependant
            if (
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  4. tests/test_dependency_duplicates.py

    @app.post("/no-duplicates")
    async def no_duplicates(item: Item, item2: Item = Depends(dependency)):
        return [item, item2]
    
    
    @app.post("/with-duplicates-sub")
    async def no_duplicates_sub(
        item: Item, sub_items: List[Item] = Depends(sub_duplicate_dependency)
    ):
        return [item, sub_items]
    
    
    def test_no_duplicates_invalid():
        response = client.post("/no-duplicates", json={"item": {"data": "myitem"}})
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  5. fastapi/utils.py

        new_field.validate_always = field.validate_always  # type: ignore[attr-defined]
        if field.sub_fields:  # type: ignore[attr-defined]
            new_field.sub_fields = [  # type: ignore[attr-defined]
                create_cloned_field(sub_field, cloned_types=cloned_types)
                for sub_field in field.sub_fields  # type: ignore[attr-defined]
            ]
        if field.key_field:  # type: ignore[attr-defined]
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/build.gradle.kts

        testImplementation(projectTests(":analysis:decompiled:decompiler-to-file-stubs"))
        testImplementation(project(":analysis:analysis-api-standalone:analysis-api-fir-standalone-base"))
        testImplementation(project(":analysis:decompiled:decompiler-to-file-stubs"))
        testImplementation(project(":analysis:decompiled:decompiler-to-psi"))
        testImplementation(kotlinTest("junit"))
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 05 16:42:25 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/PathModularization.java

         *   <li><b>Module hierarchy:</b> if {@code module-info.class} files are found in sub-directories,
         *       at a deep intentionally restricted to one level, then builds a map of module names found
         *       in the descriptor of each sub-directory.</li>
         * </ul>
         *
         * Otherwise if the given path is a JAR file, then there is a choice:
         * <ul>
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  8. errors.go

    	// ErrModelAccessibleFieldsRequired model accessible fields required
    	ErrModelAccessibleFieldsRequired = errors.New("model accessible fields required")
    	// ErrSubQueryRequired sub query required
    	ErrSubQueryRequired = errors.New("sub query required")
    	// ErrInvalidData unsupported data
    	ErrInvalidData = errors.New("unsupported data")
    	// ErrUnsupportedDriver unsupported driver
    	ErrUnsupportedDriver = errors.New("unsupported driver")
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 02:53:17 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  9. docs/es/docs/python-types.md

    * La variable `items_s` es un `set` y cada uno de sus ítems es de tipo `bytes`.
    
    #### Diccionarios (Dicts)
    
    Para definir un `dict` le pasas 2 sub-tipos separados por comas.
    
    El primer sub-tipo es para los keys del `dict`.
    
    El segundo sub-tipo es para los valores del `dict`:
    
    ```Python hl_lines="1  4"
    {!../../../docs_src/python_types/tutorial008.py!}
    ```
    
    Esto significa:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  10. fastapi/_compat.py

                field.type_, BaseModel
            ):
                if field.sub_fields is not None:  # type: ignore[attr-defined]
                    for sub_field in field.sub_fields:  # type: ignore[attr-defined]
                        if not is_pv1_scalar_field(sub_field):
                            return False
                return True
            if _annotation_is_sequence(field.type_):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
Back to top