Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 104 for tuple4 (0.1 sec)

  1. fastapi/dependencies/models.py

        security_scopes: Optional[List[str]] = None
        use_cache: bool = True
        path: Optional[str] = None
        cache_key: Tuple[Optional[Callable[..., Any]], Tuple[str, ...]] = field(init=False)
    
        def __post_init__(self) -> None:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 31 20:19:30 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. tests/test_tuples.py

    @app.post("/tuple-of-models/")
    def post_tuple_of_models(square: Tuple[Coordinate, Coordinate]):
        return square
    
    
    @app.post("/tuple-form/")
    def hello(values: Tuple[int, int] = Form()):
        return values
    
    
    client = TestClient(app)
    
    
    def test_model_with_tuple_valid():
        data = {"items": [["foo", "bar"], ["baz", "whatelse"]]}
        response = client.post("/model-with-tuple/", json=data)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/VirtualHostHelper.java

            });
        }
    
        protected <T> T processVirtualHost(final Function<String, T> func, final T defaultValue) {
            final Tuple3<String, String, String>[] vHosts = ComponentUtil.getFessConfig().getVirtualHosts();
            return LaRequestUtil.getOptionalRequest().map(req -> {
                for (final Tuple3<String, String, String> host : vHosts) {
                    final String headerValue = req.getHeader(host.getValue1());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. fastapi/_compat.py

    
    sequence_annotation_to_type = {
        Sequence: list,
        List: list,
        list: list,
        Tuple: tuple,
        tuple: tuple,
        Set: set,
        set: set,
        FrozenSet: frozenset,
        frozenset: frozenset,
        Deque: deque,
        deque: deque,
    }
    
    sequence_types = tuple(sequence_annotation_to_type.keys())
    
    if PYDANTIC_V2:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:36:32 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  5. fastapi/dependencies/utils.py

            use_cache=depends.use_cache,
        )
        if security_requirement:
            sub_dependant.security_requirements.append(security_requirement)
        return sub_dependant
    
    
    CacheKey = Tuple[Optional[Callable[..., Any]], Tuple[str, ...]]
    
    
    def get_flat_dependant(
        dependant: Dependant,
        *,
        skip_repeats: bool = False,
        visited: Optional[List[CacheKey]] = None,
    ) -> Dependant:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 21:46:26 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  6. tests/test_forms_from_non_typing_sequences.py

    def post_form_param_list(items: list = Form()):
        return items
    
    
    @app.post("/form/python-set")
    def post_form_param_set(items: set = Form()):
        return items
    
    
    @app.post("/form/python-tuple")
    def post_form_param_tuple(items: tuple = Form()):
        return items
    
    
    client = TestClient(app)
    
    
    def test_python_list_param_as_form():
        response = client.post(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/KeyMatchHelper.java

                        List<Tuple3<String, QueryBuilder, ScoreFunctionBuilder<?>>> boostList = queryMap.get(termKey);
                        if (boostList == null) {
                            boostList = new ArrayList<>();
                            queryMap.put(termKey, boostList);
                        }
                        boostList.add(
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. fastapi/security/utils.py

    from typing import Optional, Tuple
    
    
    def get_authorization_scheme_param(
        authorization_header_value: Optional[str],
    ) -> Tuple[str, str]:
        if not authorization_header_value:
            return "", ""
        scheme, _, param = authorization_header_value.partition(" ")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Nov 13 14:26:09 UTC 2022
    - 293 bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/thumbnail/ThumbnailGenerator.java

    import java.io.File;
    import java.util.Map;
    
    import org.codelibs.core.misc.Tuple3;
    
    public interface ThumbnailGenerator {
    
        String getName();
    
        boolean generate(String thumbnailId, File outputFile);
    
        boolean isTarget(Map<String, Object> docMap);
    
        boolean isAvailable();
    
        void destroy();
    
        Tuple3<String, String, String> createTask(String path, Map<String, Object> docMap);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGenerator.java

        }
    
        @Override
        public Tuple3<String, String, String> createTask(final String path, final Map<String, Object> docMap) {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            final String thumbnailId = DocumentUtil.getValue(docMap, fessConfig.getIndexFieldId(), String.class);
            final Tuple3<String, String, String> task = new Tuple3<>(getName(), thumbnailId, path);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top