- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 85 for Union (0.01 sec)
-
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) -
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`, & ๐, ๐ข ๐ฒ `None`, FastAPI ๐ ๐ญ โซ๏ธ ๐ซ โ. /// note FastAPI ๐ ๐ญ ๐ ๐ฒ `q` ๐ซ โ โฉ๏ธ ๐ข ๐ฒ `= None`. `Union` `Union[str, None]` ๐ โ ๐ ๐จโ๐จ ๐ค ๐ ๐ ๐โ๐ฆบ & ๐ โ. /// ## ๐ ๐ฌRegistered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Feb 15 16:23:59 UTC 2025 - 7.8K bytes - Viewed (0) -
docs/es/docs/tutorial/extra-models.md
## `Union` o `anyOf` Puedes declarar un response que sea la `Union` de dos o mรกs tipos, eso significa que el response serรญa cualquiera de ellos. Se definirรก en OpenAPI con `anyOf`. Para hacerlo, usa el type hint estรกndar de Python <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>: /// note | Nota
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 18:26:57 UTC 2024 - 7.3K bytes - Viewed (0) -
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) -
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>: /// noteRegistered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 7.2K bytes - Viewed (0) -
docs/de/docs/tutorial/query-params-str-validations.md
```Python q: str ``` statt: ```Python q: Union[str, None] = None ``` Aber jetzt deklarieren wir den Parameter mit `Query`, wie in: //// tab | Annotiert ```Python q: Annotated[Union[str, None], Query(min_length=3)] = None ``` //// //// tab | Nicht annotiert ```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 - 16.6K bytes - Viewed (0) -
docs/uk/docs/index.md
## ะัะธะบะปะฐะด ### ะกัะฒะพัััั * ะกัะฒะพัััั ัะฐะนะป `main.py` ะท: ```Python from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} ``` <details markdown="1">
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:49:48 UTC 2025 - 24.2K bytes - Viewed (0) -
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) -
android/guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java
import static com.google.common.collect.Multisets.difference; import static com.google.common.collect.Multisets.intersection; import static com.google.common.collect.Multisets.sum; import static com.google.common.collect.Multisets.union; import static com.google.common.collect.Multisets.unmodifiableMultiset; import static java.util.Arrays.asList; import static java.util.Collections.sort; import com.google.common.annotations.GwtIncompatible;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 9.7K bytes - Viewed (0) -
docs/ko/docs/tutorial/extra-models.md
{* ../../docs_src/extra_models/tutorial002_py310.py hl[7,13:14,17:18,21:22] *} ## `Union` ๋๋ `anyOf` ๋ ๊ฐ์ง ์ด์์ ํ์ ์ ํฌํจํ๋ `Union`์ผ๋ก ์๋ต์ ์ ์ธํ ์ ์์ต๋๋ค. ์ด๋ ์๋ต์ด ๊ทธ ์ค ํ๋์ ํ์ ์ผ ์ ์์์ ์๋ฏธํฉ๋๋ค. OpenAPI์์๋ ์ด๋ฅผ `anyOf`๋ก ์ ์ํฉ๋๋ค. ์ด๋ฅผ ์ํด ํ์ค Python ํ์ ํํธ์ธ <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: Fri May 30 13:38:33 UTC 2025 - 8.4K bytes - Viewed (0)