- Sort Score
- Num 10 results
- Language All
Results 111 - 120 of 399 for typer (0.02 seconds)
-
docs/pt/docs/tutorial/extra-data-types.md
* Em requisições e respostas será representado como um `float`. * Você pode checar todos os tipos de dados válidos do Pydantic aqui: [Tipos de dados do Pydantic](https://docs.pydantic.dev/latest/usage/types/types/). ## Exemplo { #example } Aqui está um exemplo de *operação de rota* com parâmetros utilizando-se de alguns dos tipos acima. {* ../../docs_src/extra_data_types/tutorial001_an_py310.py hl[1,3,12:16] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 2.9K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/advanced-python-types.md
# 進階 Python 型別 { #advanced-python-types } 以下是一些在使用 Python 型別時可能有用的額外想法。 ## 使用 `Union` 或 `Optional` { #using-union-or-optional } 如果你的程式碼因某些原因無法使用 `|`,例如不是在型別註記中,而是在像 `response_model=` 之類的參數位置,那麼你可以用 `typing` 中的 `Union` 來取代豎線(`|`)。 例如,你可以宣告某個值可以是 `str` 或 `None`: ```python from typing import Union def say_hi(name: Union[str, None]): print(f"Hi {name}!") ``` 在 `typing` 中也有用 `Optional` 宣告某個值可以是 `None` 的速記法。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 1.9K bytes - Click Count (0) -
docs/uk/docs/advanced/advanced-python-types.md
# Просунуті типи Python { #advanced-python-types } Ось кілька додаткових ідей, які можуть бути корисні під час роботи з типами в Python. ## Використання `Union` або `Optional` { #using-union-or-optional } Якщо ваш код з якоїсь причини не може використовувати `|`, наприклад, якщо це не анотація типів, а щось на кшталт `response_model=`, замість вертикальної риски (`|`) ви можете використати `Union` з `typing`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:43:14 GMT 2026 - 3.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/DocumentUtil.java
} /** * Converts an object to the specified type. * Supports conversion to String, Date, Long, Integer, Double, Float, and Boolean types. * * @param <T> the type to convert the value to * @param value the value to convert * @param clazz the target class type * @return the converted value or null if conversion is not supported */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 7.2K bytes - Click Count (0) -
fastapi/openapi/models.py
class SecurityBase(BaseModelWithConfig): type_: SecuritySchemeType = Field(alias="type") description: str | None = None class APIKeyIn(Enum): query = "query" header = "header" cookie = "cookie" class APIKey(SecurityBase): type_: SecuritySchemeType = Field(default=SecuritySchemeType.apiKey, alias="type") in_: APIKeyIn = Field(alias="in") name: str
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 14.2K bytes - Click Count (0) -
cmd/setup-type.go
package cmd // SetupType - enum for setup type. type SetupType int const ( // UnknownSetupType - starts with unknown setup type. UnknownSetupType SetupType = iota // FSSetupType - FS setup type enum. FSSetupType // ErasureSDSetupType - Erasure single drive setup enum. ErasureSDSetupType // ErasureSetupType - Erasure setup type enum. ErasureSetupType
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Oct 25 00:44:15 GMT 2022 - 1.5K bytes - Click Count (0) -
src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java
* Encodes an NDR referent pointer. * * @param obj the object to encode as a referent * @param type the referent type */ public void enc_ndr_referent(final Object obj, final int type) { if (obj == null) { enc_ndr_long(0); return; } switch (type) { case 1: /* unique */ case 3: /* ref */ enc_ndr_long(System.identityHashCode(obj));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 10.7K bytes - Click Count (0) -
docs/de/docs/tutorial/extra-models.md
Dies wird in OpenAPI mit `anyOf` definiert. Um das zu tun, verwenden Sie den Standard-Python-Typhinweis [`typing.Union`](https://docs.python.org/3/library/typing.html#typing.Union): /// note | Hinweis
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 7.7K bytes - Click Count (0) -
src/builtin/builtin.go
// pointer, channel, func, interface, map, or slice type. var nil Type // Type must be a pointer, channel, func, interface, map, or slice type // Type is here for the purposes of documentation only. It is a stand-in // for any Go type, but represents the same type for any given function // invocation. type Type int // Type1 is here for the purposes of documentation only. It is a stand-in
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Feb 26 17:14:40 GMT 2026 - 13.2K bytes - Click Count (0) -
docs/de/docs/alternatives.md
Da die Parameter mit TypeScript-Typen beschrieben werden (ähnlich den Python-Typhinweisen), ist die Editorunterstützung ziemlich gut.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 26K bytes - Click Count (0)