- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 710 for Fstr (0.01 sec)
-
docs/uk/docs/tutorial/query-params-str-validations.md
//// tab | Python 3.10+ ```Python q: str | None = None ``` //// //// tab | Python 3.8+ ```Python q: Union[str, None] = None ``` //// Тепер ми загорнемо її у `Annotated`, і отримаємо: //// tab | Python 3.10+ ```Python q: Annotated[str | None] = None ``` //// //// tab | Python 3.8+ ```Python q: Annotated[Union[str, None]] = None ``` ////
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri May 30 14:17:24 UTC 2025 - 26.1K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params-str-validations.md
The query parameter `q` is of type `str | None`, that means that it's of type `str` but could also be `None`, and indeed, the default value is `None`, so FastAPI will know it's not required. /// note FastAPI will know that the value of `q` is not required because of the default value `= None`. Having `str | None` will allow your editor to give you better support and detect errors. ///
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 16.7K bytes - Viewed (0) -
docs/es/docs/tutorial/query-params-str-validations.md
El parámetro de query `q` es de tipo `str | None`, lo que significa que es de tipo `str` pero también podría ser `None`, y de hecho, el valor por defecto es `None`, así que FastAPI sabrá que no es requerido. /// note | Nota FastAPI sabrá que el valor de `q` no es requerido por el valor por defecto `= None`. Tener `str | None` permitirá que tu editor te dé un mejor soporte y detecte errores. ///
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 18.4K bytes - Viewed (0) -
docs/zh/docs/tutorial/query-params-str-validations.md
由于我们必须用 `Query(default=None)` 替换默认值 `None`,`Query` 的第一个参数同样也是用于定义默认值。 所以: ```Python q: Union[str, None] = Query(default=None) ``` ...使得参数可选,等同于: ```Python q: str = None ``` 但是 `Query` 显式地将其声明为查询参数。 然后,我们可以将更多的参数传递给 `Query`。在本例中,适用于字符串的 `max_length` 参数: ```Python q: Union[str, None] = Query(default=None, max_length=50) ``` 将会校验数据,在数据无效时展示清晰的错误信息,并在 OpenAPI 模式的*路径操作*中记录该参数。
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Feb 15 16:23:59 UTC 2025 - 7.7K bytes - Viewed (0) -
docs/ru/docs/tutorial/query-params-str-validations.md
//// tab | Python 3.10+ ```Python q: str | None = None ``` //// //// tab | Python 3.9+ ```Python q: Union[str, None] = None ``` //// Мы «обернём» это в `Annotated`, и получится: //// tab | Python 3.10+ ```Python q: Annotated[str | None] = None ``` //// //// tab | Python 3.9+ ```Python q: Annotated[Union[str, None]] = None ``` ////
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 26.2K bytes - Viewed (0) -
docs/de/docs/tutorial/query-params-str-validations.md
Der Query-Parameter `q` hat den Typ `str | None`, das bedeutet, dass er vom Typ `str` sein kann, aber auch `None`, und tatsächlich ist der Defaultwert `None`, sodass FastAPI weiß, dass er nicht erforderlich ist. /// note | Hinweis FastAPI erkennt, dass der Wert von `q` nicht erforderlich ist, aufgrund des Defaultwertes `= None`.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 24 10:28:19 UTC 2025 - 19.1K bytes - Viewed (0) -
docs/pt/docs/tutorial/query-params-str-validations.md
O parâmetro de consulta `q` é do tipo `str | None`, isso significa que é do tipo `str`, mas também pode ser `None`, e de fato, o valor padrão é `None`, então o FastAPI saberá que não é obrigatório. /// note | Nota O FastAPI saberá que o valor de `q` não é obrigatório por causa do valor padrão `= None`. Ter `str | None` permitirá que seu editor lhe ofereça melhor suporte e detecte erros. ///
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 18.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SID.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.5K bytes - Viewed (0) -
tests/test_dependency_class.py
class MethodsDependency: def synchronous(self, value: str) -> str: return value async def asynchronous(self, value: str) -> str: return value def synchronous_gen(self, value: str) -> Generator[str, None, None]: yield value async def asynchronous_gen(self, value: str) -> AsyncGenerator[str, None]: yield value callable_dependency = CallableDependency()Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 4.4K bytes - Viewed (0) -
tests/test_request_params/test_form/test_optional_list.py
@pytest.mark.parametrize( "path", ["/optional-list-str", "/model-optional-list-str"], ) def test_optional_list_str_missing(path: str): client = TestClient(app) response = client.post(path) assert response.status_code == 200, response.text assert response.json() == {"p": None} @pytest.mark.parametrize( "path", ["/optional-list-str", "/model-optional-list-str"], ) def test_optional_list_str(path: str):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 9.9K bytes - Viewed (0)