Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 792 for tuples (0.29 sec)

  1. 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)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  2. fastapi/encoders.py

    }
    
    
    def generate_encoders_by_class_tuples(
        type_encoder_map: Dict[Any, Callable[[Any], Any]],
    ) -> Dict[Callable[[Any], Any], Tuple[Any, ...]]:
        encoders_by_class_tuples: Dict[Callable[[Any], Any], Tuple[Any, ...]] = defaultdict(
            tuple
        )
        for type_, encoder in type_encoder_map.items():
            encoders_by_class_tuples[encoder] += (type_,)
        return encoders_by_class_tuples
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  3. docs/es/docs/python-types.md

    <img src="https://fastapi.tiangolo.com/img/python-types/image05.png">
    
    Observa que la variable `item` es unos de los elementos en la lista `items`.
    
    El editor aún sabe que es un `str` y provee soporte para ello.
    
    #### Tuples y Sets
    
    Harías lo mismo para declarar `tuple`s y `set`s:
    
    ```Python hl_lines="1  4"
    {!../../../docs_src/python_types/tutorial007.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)
  4. fastapi/openapi/models.py

        # Serialization rules for simple scenarios
        style: Optional[str] = None
        explode: Optional[bool] = None
        allowReserved: Optional[bool] = None
        schema_: Optional[Union[Schema, Reference]] = Field(default=None, alias="schema")
        example: Optional[Any] = None
        examples: Optional[Dict[str, Union[Example, Reference]]] = None
        # Serialization rules for more complex scenarios
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
  5. src/main/java/org/codelibs/core/misc/Tuple4.java

         *            4番目の値
         * @return 4つの値の組
         */
        public static <T1, T2, T3, T4> Tuple4<T1, T2, T3, T4> tuple4(final T1 value1, final T2 value2, final T3 value3, final T4 value4) {
            return new Tuple4<>(value1, value2, value3, value4);
        }
    
        /**
         * インスタンスを構築します。
         */
        public Tuple4() {
        }
    
        /**
         * インスタンスを構築します。
         *
         * @param value1
         *            1番目の値
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/misc/Tuple3.java

         * @param value3
         *            3番目の値
         * @return 3つの値の組
         */
        public static <T1, T2, T3> Tuple3<T1, T2, T3> tuple3(final T1 value1, final T2 value2, final T3 value3) {
            return new Tuple3<>(value1, value2, value3);
        }
    
        /**
         * インスタンスを構築します。
         */
        public Tuple3() {
        }
    
        /**
         * インスタンスを構築します。
         *
         * @param value1
         *            1番目の値
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/misc/Tuple5.java

         * @return 5つの値の組
         */
        public static <T1, T2, T3, T4, T5> Tuple5<T1, T2, T3, T4, T5> tuple5(final T1 value1, final T2 value2, final T3 value3, final T4 value4,
                final T5 value5) {
            return new Tuple5<>(value1, value2, value3, value4, value5);
        }
    
        /**
         * インスタンスを構築します。
         */
        public Tuple5() {
        }
    
        /**
         * インスタンスを構築します。
         *
         * @param value1
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  8. docs/tr/docs/python-types.md

    ### Basit tipler
    
    Yalnızca `str` değil, tüm standart Python tiplerinin bildirebilirsiniz.
    
    Örneğin şunları kullanabilirsiniz:
    
    * `int`
    * `float`
    * `bool`
    * `bytes`
    
    ```Python hl_lines="1"
    {!../../../docs_src/python_types/tutorial005.py!}
    ```
    
    ### Tip parametreleri ile Generic tipler
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Tables.java

     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/CollectionUtilitiesExplained#tables">{@code Tables}</a>.
     *
     * @author Jared Levy
     * @author Louis Wasserman
     * @since 7.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Tables {
      private Tables() {}
    
      /**
       * Returns a {@link Collector} that accumulates elements into a {@code Table} created using the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 04 22:45:41 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  10. docs/de/docs/python-types.md

    <img src="/img/python-types/image05.png">
    
    Ohne Typen ist das fast unmöglich zu erreichen.
    
    Beachten Sie, dass die Variable `item` eines der Elemente in der Liste `items` ist.
    
    Und trotzdem weiß der Editor, dass es sich um ein `str` handelt, und bietet entsprechende Unterstützung.
    
    #### Tupel und Menge
    
    Das Gleiche gilt für die Deklaration eines Tupels – `tuple` – und einer Menge – `set`:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:29:25 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top