- Sort Score
- Result 10 results
- Languages All
Results 251 - 260 of 487 for str (0.01 sec)
-
docs/en/docs/tutorial/path-params.md
### Create an `Enum` class { #create-an-enum-class } Import `Enum` and create a sub-class that inherits from `str` and from `Enum`. By inheriting from `str` the API docs will be able to know that the values must be of type `string` and will be able to render correctly. Then create class attributes with fixed values, which will be the available valid values:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:29:01 UTC 2025 - 9.3K bytes - Viewed (0) -
docs/es/docs/tutorial/path-params.md
### Crear una clase `Enum` Importa `Enum` y crea una subclase que herede de `str` y de `Enum`. Al heredar de `str`, la documentación de la API podrá saber que los valores deben ser de tipo `string` y podrá representarlos correctamente. Luego crea atributos de clase con valores fijos, que serán los valores válidos disponibles:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:29:01 UTC 2025 - 9.4K bytes - Viewed (0) -
docs/ru/docs/features.md
```Python from datetime import date from pydantic import BaseModel # Объявляем параметр user_id с типом `str` # и получаем поддержку редактора внутри функции def main(user_id: str): return user_id # Модель Pydantic class User(BaseModel): id: int name: str joined: date ``` Это можно использовать так: ```Python
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sat Nov 09 16:39:20 UTC 2024 - 16.2K bytes - Viewed (0) -
docs/tr/docs/index.md
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float is_offer: Union[bool, None] = None @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} @app.put("/items/{item_id}")
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:49:48 UTC 2025 - 21.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
// When String str = response.toString(); // Then assertNotNull(str); assertTrue(str.contains("Smb2NegotiateResponse")); assertTrue(str.contains("dialectRevision=")); assertTrue(str.contains("securityMode=")); assertTrue(str.contains("capabilities=")); assertTrue(str.contains("serverTime=")); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 32.5K bytes - Viewed (0) -
docs/bn/docs/index.md
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float is_offer: Union[bool, None] = None @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} @app.put("/items/{item_id}")
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:49:48 UTC 2025 - 30.5K bytes - Viewed (0) -
docs/ru/docs/tutorial/request-files.md
### `UploadFile` `UploadFile` имеет следующие атрибуты: * `filename`: Строка `str` с исходным именем файла, который был загружен (например, `myimage.jpg`). * `content_type`: Строка `str` с типом содержимого (MIME type / media type) (например, `image/jpeg`).
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 11.1K bytes - Viewed (0) -
docs/pt/docs/tutorial/path-params-numeric-validations.md
/// ## Ordene os parâmetros de acordo com sua necessidade Suponha que você queira declarar o parâmetro de consulta `q` como uma `str` obrigatória. E você não precisa declarar mais nada em relação a este parâmetro, então você não precisa necessariamente usar `Query`. Mas você ainda precisa usar `Path` para o parâmetro de rota `item_id`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 5.1K bytes - Viewed (0) -
docs/nl/docs/features.md
```Python from datetime import date from pydantic import BaseModel # Declareer een variabele als een str # en krijg editorondersteuning in de functie def main(user_id: str): return user_id # Een Pydantic model class User(BaseModel): id: int name: str joined: date ``` Vervolgens kan je het op deze manier gebruiken: ```Python
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Tue Sep 03 13:50:38 UTC 2024 - 10.1K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jul 23 17:27:08 UTC 2025 - 26.4K bytes - Viewed (0)