- Sort Score
- Num 10 results
- Language All
Results 641 - 650 of 1,675 for tone (0.02 seconds)
-
tests/test_forms_single_model.py
from fastapi.testclient import TestClient from pydantic import BaseModel, Field app = FastAPI() class FormModel(BaseModel): username: str lastname: str age: Optional[int] = None tags: list[str] = ["foo", "bar"] alias_with: str = Field(alias="with", default="nothing") class FormModelExtraAllow(BaseModel): param: str model_config = {"extra": "allow"}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 3.4K bytes - Click Count (0) -
ci/official/utilities/convert_msys_paths_to_win_paths.py
Linux-like paths MSYS uses, for example, Docker. """ import argparse import os def should_convert(var_name: str, blacklist: list[str] | None, whitelist_prefix: list[str] | None): """Check the variable name against white/black lists.""" if blacklist and var_name in blacklist: return False if not whitelist_prefix: return True
Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Wed Aug 07 23:01:25 GMT 2024 - 2.5K bytes - Click Count (0) -
docs/en/docs/index.md
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}") def update_item(item_id: int, item: Item):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Dec 25 11:01:37 GMT 2025 - 23.5K bytes - Click Count (0) -
docs/pt/docs/tutorial/sql-databases.md
informa ao SQLModel que o `id` é a **chave primária** no banco de dados SQL (você pode aprender mais sobre chaves primárias SQL na documentação do SQLModel). **Nota:** Usamos `int | None` para o campo de chave primária para que, no código Python, possamos *criar um objeto sem um `id`* (`id=None`), assumindo que o banco de dados irá *gerá-lo ao salvar*. O SQLModel entende que o banco de dados fornecerá o `id` e *define a coluna como um `INTEGER` não nulo* no esquema do banco de dados. Veja...
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 20:32:40 GMT 2025 - 16.9K bytes - Click Count (0) -
tests/test_stringified_annotation_dependency.py
class DummyClient: async def get_people(self) -> list: return ["John Doe", "Jane Doe"] async def close(self) -> None: pass async def get_client() -> AsyncGenerator[DummyClient, None]: client = DummyClient() yield client await client.close() Client = Annotated[DummyClient, Depends(get_client)] @pytest.fixture(name="client")Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 2.2K bytes - Click Count (0) -
internal/grid/connection.go
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 46.9K bytes - Click Count (0) -
docs/en/docs/contributing.md
/// Help with translations is VERY MUCH appreciated! And it can't be done without the help from the community. 🌎 🚀 Here are the steps to help with translations. #### Tips and guidelines
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Sep 21 11:29:04 GMT 2025 - 15.1K bytes - Click Count (0) -
buildscripts/heal-inconsistent-versions.sh
"${PWD}/mc" cp /etc/hosts minio/bucket/testobj sudo chown -R ${USER}. "${WORK_DIR}/disk${i}" done for vid in $("${PWD}/mc" ls --json --versions minio/bucket/testobj | jq -r .versionId); do "${PWD}/mc" cat --vid "${vid}" minio/bucket/testobj | md5sum done pkill minio sleep 3 } function main() { start_port=$(shuf -i 10000-65000 -n 1) start_minio_4drive ${start_port}Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri May 26 05:07:25 GMT 2023 - 1.9K bytes - Click Count (0) -
docs/en/docs/how-to/separate-openapi-schemas.md
The way to describe this in OpenAPI, is to mark that field as **required**, because it will always be there. Because of that, the JSON Schema for a model can be different depending on if it's used for **input or output**: * for **input** the `description` will **not be required** * for **output** it will be **required** (and possibly `None`, or in JSON terms, `null`)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 4.5K bytes - Click Count (0) -
src/main/java/org/codelibs/curl/io/ContentOutputStream.java
* <ul> * <li>{@code logger} - Logger instance for logging warnings.</li> * <li>{@code PREFIX} - Prefix for the temporary file name.</li> * <li>{@code SUFFIX} - Suffix for the temporary file name.</li> * <li>{@code done} - Flag indicating whether the file has been retrieved.</li> * </ul> * * <p>Constructors:</p> * <ul>
Created: Sat Dec 20 09:13:53 GMT 2025 - Last Modified: Thu Nov 20 13:34:13 GMT 2025 - 3.9K bytes - Click Count (0)