- Sort Score
- Num 10 results
- Language All
Results 731 - 740 of 1,728 for int8 (0.02 seconds)
-
docs_src/dependencies/tutorial003_an_py310.py
app = FastAPI() fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}] class CommonQueryParams: def __init__(self, q: str | None = None, skip: int = 0, limit: int = 100): self.q = q self.skip = skip self.limit = limit @app.get("/items/") async def read_items(commons: Annotated[Any, Depends(CommonQueryParams)]): response = {}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 655 bytes - Click Count (0) -
docs/zh/docs/tutorial/body-nested-models.md
--- 其他有用的场景是当你想要接收其他类型的键时,例如 `int`。 这也是我们在接下来将看到的。 在下面的例子中,你将接受任意键为 `int` 类型并且值为 `float` 类型的 `dict`: {* ../../docs_src/body_nested_models/tutorial009_py39.py hl[7] *} /// tip 请记住 JSON 仅支持将 `str` 作为键。 但是 Pydantic 具有自动转换数据的功能。 这意味着,即使你的 API 客户端只能将字符串作为键发送,只要这些字符串内容仅包含整数,Pydantic 就会对其进行转换并校验。 然后你接收的名为 `weights` 的 `dict` 实际上将具有 `int` 类型的键和 `float` 类型的值。 /// ## 总结Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 6.7K bytes - Click Count (0) -
docs/de/docs/tutorial/query-params.md
{* ../../docs_src/query_params/tutorial006_py310.py hl[8] *} In diesem Fall gibt es drei Query-Parameter: * `needy`, ein erforderlicher `str`. * `skip`, ein `int` mit einem Defaultwert `0`. * `limit`, ein optionales `int`. /// tip | Tipp Sie können auch `Enum`s verwenden, auf die gleiche Weise wie mit [Pfad-Parametern](path-params.md#predefined-values){.internal-link target=_blank}.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 5K bytes - Click Count (0) -
build-logic/documentation/src/test/resources/org/gradle/test/GroovyClassWithMethods.groovy
null } /** * A String property. */ String prop /** * A read-only property. */ final JavaInterface finalProp int getIntProp() { 5 } void setIntProp(int prop) { }Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 952 bytes - Click Count (0) -
docs_src/body_multiple_params/tutorial004_an_py39.py
class User(BaseModel): username: str full_name: Union[str, None] = None @app.put("/items/{item_id}") async def update_item( *, item_id: int, item: Item, user: User, importance: Annotated[int, Body(gt=0)], q: Union[str, None] = None, ): results = {"item_id": item_id, "item": item, "user": user, "importance": importance} if q: results.update({"q": q})
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 674 bytes - Click Count (0) -
docs_src/schema_extra_example/tutorial005_py310.py
class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None @app.put("/items/{item_id}") async def update_item( *, item_id: int, item: Item = Body( openapi_examples={ "normal": { "summary": "A normal example", "description": "A **normal** item works correctly.", "value": {
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Aug 26 18:03:13 GMT 2023 - 1.3K bytes - Click Count (0) -
build-logic/documentation/src/test/resources/org/gradle/test/JavaInterfaceWithConstants.java
package org.gradle.test; public interface JavaInterfaceWithConstants { String STRING_CONST = "some-string"; public static final int INT_CONST = 120;Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 160 bytes - Click Count (0) -
api/README
nnnnn.txt, after the issue number for the accepted proposal. (The #nnnnn suffix must also appear at the end of each line in the file; that will be preserved when next/*.txt is concatenated into go1.XX.txt.) When you add a file to the api/next directory, you must add at least one file
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Wed Jan 31 19:22:50 GMT 2024 - 1.2K bytes - Click Count (0) -
docs_src/body_nested_models/tutorial009_py39.py
from fastapi import FastAPI app = FastAPI() @app.post("/index-weights/") async def create_index_weights(weights: dict[int, float]):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 154 bytes - Click Count (0) -
CONTRIBUTING.md
git config user.name 'First Last' git config user.email ******@****.*** ### IntelliJ IDEA #### Import Gradle into IntelliJ To import Gradle into IntelliJ: - Open the `build.gradle.kts` file in root of the project with IntelliJ and choose "Open as Project" - Select a Adoptium Java 17 VM as "Gradle JVM" - Revert the Git changes to files in the `.idea` folderCreated: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Nov 25 06:57:22 GMT 2025 - 19K bytes - Click Count (0)