Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 108 for union (0.07 sec)

  1. docs/es/docs/tutorial/extra-models.md

    ///
    
    {* ../../docs_src/extra_models/tutorial003_py310.py hl[1,14:15,18:20,33] *}
    
    
    ### `Union` en Python 3.10
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/extra-models.md

    ## `Union` โš–๏ธ `anyOf`
    
    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“ฃ ๐Ÿ“จ `Union` 2๏ธโƒฃ ๐Ÿ†Ž, ๐Ÿ‘ˆ โ›“, ๐Ÿ‘ˆ ๐Ÿ“จ ๐Ÿ”œ ๐Ÿ™† 2๏ธโƒฃ.
    
    โšซ๏ธ ๐Ÿ”œ ๐Ÿ”ฌ ๐Ÿ—„ โฎ๏ธ `anyOf`.
    
    ๐Ÿ‘ˆ, โš™๏ธ ๐Ÿฉ ๐Ÿ ๐Ÿ†Ž ๐Ÿ”‘ <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>:
    
    /// note
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/extra-models.md

    ## `Union` or `anyOf` { #union-or-anyof }
    
    You can declare a response to be the `Union` of two or more types, that means, that the response would be any of them.
    
    It will be defined in OpenAPI with `anyOf`.
    
    To do that, use the standard Python type hint <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>:
    
    /// note
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/SetViewTest.java

        assertMinSize(union(emptySet(), emptySet()), 0);
        assertMinSize(union(setSize(2), setSize(3)), 3);
        assertMinSize(union(setSize(3), setSize(2)), 3);
        assertMinSize(union(setSizeRange(10, 20), setSizeRange(11, 12)), 11);
        assertMinSize(union(setSizeRange(11, 12), setSizeRange(10, 20)), 11);
      }
    
      public void testUnion_maxSize() {
        assertMaxSize(union(emptySet(), emptySet()), 0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.9K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/extra-models.md

    /// note | Hinweis
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/query-params-str-validations.md

    โžก๏ธ โœŠ ๐Ÿ‘‰ ๐Ÿˆธ ๐Ÿ–ผ:
    
    {* ../../docs_src/query_params_str_validations/tutorial001.py hl[9] *}
    
    ๐Ÿ”ข ๐Ÿ”ข `q` ๐Ÿ†Ž `Union[str, None]` (โš–๏ธ `str | None` ๐Ÿ 3๏ธโƒฃ.1๏ธโƒฃ0๏ธโƒฃ), ๐Ÿ‘ˆ โ›“ ๐Ÿ‘ˆ โšซ๏ธ ๐Ÿ†Ž `str` โœ‹๏ธ ๐Ÿ’ช `None`, &amp; ๐Ÿ‘, ๐Ÿ”ข ๐Ÿ’ฒ `None`, FastAPI ๐Ÿ”œ ๐Ÿ’ญ โšซ๏ธ ๐Ÿšซ โœ”.
    
    /// note
    
    FastAPI ๐Ÿ”œ ๐Ÿ’ญ ๐Ÿ‘ˆ ๐Ÿ’ฒ `q` ๐Ÿšซ โœ” โ†ฉ๏ธ ๐Ÿ”ข ๐Ÿ’ฒ `= None`.
    
     `Union` `Union[str, None]` ๐Ÿ”œ โœ” ๐Ÿ‘† ๐Ÿ‘จโ€๐ŸŽจ ๐Ÿค ๐Ÿ‘† ๐Ÿ‘ ๐Ÿ•โ€๐Ÿฆบ &amp; ๐Ÿ” โŒ.
    
    ///
    
    ## ๐ŸŒ– ๐Ÿ”ฌ
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Feb 15 16:23:59 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/extra-models.md

    ///
    
    {* ../../docs_src/extra_models/tutorial003.py hl[1,14:15,18:20,33] *}
    
    ### `Union` no Python 3.10
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/extra-models.md

    ///
    
    {* ../../docs_src/extra_models/tutorial003_py310.py hl[1,14:15,18:20,33] *}
    
    ### `Union` ะฒ Python 3.10
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/query-params-str-validations.md

    ```Python
    q: str
    ```
    
    ะฒะผะตัั‚ะพ:
    
    ```Python
    q: Union[str, None] = None
    ```
    
    ะะพ ัƒ ะฝะฐั query-ะฟะฐั€ะฐะผะตั‚ั€ ะพะฟั€ะตะดะตะปั‘ะฝ ะบะฐะบ `Query`. ะะฐะฟั€ะธะผะตั€:
    
    //// tab | Annotated
    
    ```Python
    q: Annotated[Union[str, None], Query(min_length=3)] = None
    ```
    
    ////
    
    //// tab | ะฑะตะท Annotated
    
    ```Python
    q: Union[str, None] = Query(default=None, min_length=3)
    ```
    
    ////
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Feb 15 16:23:59 UTC 2025
    - 24K bytes
    - Viewed (0)
  10. docs/en/docs/python-types.md

    ```
    
    ////
    
    #### Using `Union` or `Optional` { #using-union-or-optional }
    
    If you are using a Python version below 3.10, here's a tip from my very **subjective** point of view:
    
    * ๐Ÿšจ Avoid using `Optional[SomeType]`
    * Instead โœจ **use `Union[SomeType, None]`** โœจ.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 17.1K bytes
    - Viewed (0)
Back to top