- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 734 for dice (0.02 sec)
-
android/guava/src/com/google/common/collect/Table.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 10.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/dict/mapping/CreateBody.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.app.web.api.admin.dict.mapping; import org.codelibs.fess.app.web.admin.dict.mapping.CreateForm; /** * Request body for creating mapping dictionary via REST API. * Extends CreateForm to inherit validation and field definitions. */
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 1021 bytes - Viewed (0) -
fastapi/param_functions.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 63K bytes - Viewed (0) -
docs/zh/docs/tutorial/body-nested-models.md
如果你直接使用 `dict` 而不是 Pydantic 模型,那你将无法获得这种编辑器支持。 但是你根本不必担心这两者,传入的字典会自动被转换,你的输出也会自动被转换为 JSON。 ## 任意 `dict` 构成的请求体 你也可以将请求体声明为使用某类型的键和其他类型值的 `dict`。 无需事先知道有效的字段/属性(在使用 Pydantic 模型的场景)名称是什么。 如果你想接收一些尚且未知的键,这将很有用。 --- 其他有用的场景是当你想要接收其他类型的键时,例如 `int`。 这也是我们在接下来将看到的。 在下面的例子中,你将接受任意键为 `int` 类型并且值为 `float` 类型的 `dict`:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 6.7K bytes - Viewed (0) -
docs/zh/docs/python-types.md
* 变量 `items_s` 是一个 `set`,其中的每个元素都是 `bytes` 类型。 #### 字典 定义 `dict` 时,需要传入两个子类型,用逗号进行分隔。 第一个子类型声明 `dict` 的所有键。 第二个子类型声明 `dict` 的所有值: {* ../../docs_src/python_types/tutorial008.py hl[1,4] *} 这表示: * 变量 `prices` 是一个 `dict`: * 这个 `dict` 的所有键为 `str` 类型(可以看作是字典内每个元素的名称)。 * 这个 `dict` 的所有值为 `float` 类型(可以看作是字典内每个元素的价格)。 ### 类作为类型 你也可以将类声明为变量的类型。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Aug 18 06:34:40 UTC 2025 - 8.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/constants/SuggestConstants.java
/** The system property name for user dictionary encoding. */ public static final String USER_DICT_ENCODING = "fess.user.dict.encoding"; /** The system property name for user dictionary path. */ public static final String USER_DICT_PATH = "fess.user.dict.path"; /** The text separator. */ public static final String TEXT_SEPARATOR = " "; /** The default role for guest users. */Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Fri Jul 04 14:00:23 UTC 2025 - 1.5K bytes - Viewed (0) -
tests/test_dependency_yield_except_httpexception.py
@app.put("/invalid-user/{user_id}") def put_invalid_user( user_id: str, name: str = Body(), db: dict = Depends(get_database) ): db[user_id] = name raise HTTPException(status_code=400, detail="Invalid user") @app.put("/user/{user_id}") def put_user(user_id: str, name: str = Body(), db: dict = Depends(get_database)): db[user_id] = name return {"message": "OK"} @pytest.fixture(autouse=True)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 03:29:38 UTC 2025 - 1.9K bytes - Viewed (0) -
docs_src/dependency_testing/tutorial001_py39.py
): return {"q": q, "skip": skip, "limit": limit} @app.get("/items/") async def read_items(commons: dict = Depends(common_parameters)): return {"message": "Hello Items!", "params": commons} @app.get("/users/") async def read_users(commons: dict = Depends(common_parameters)): return {"message": "Hello Users!", "params": commons} client = TestClient(app)Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.5K bytes - Viewed (0) -
tests/test_invalid_path_param.py
def test_invalid_dict(): with pytest.raises(AssertionError): app = FastAPI() class Item(BaseModel): title: str @app.get("/items/{id}") def read_items(id: dict[str, Item]): pass # pragma: no cover def test_invalid_simple_list(): with pytest.raises(AssertionError): app = FastAPI() @app.get("/items/{id}")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 1.6K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial001.py
return client def test_post_body_example(client: TestClient): response = client.put( "/items/5", json={ "name": "Foo", "description": "A very nice Item", "price": 35.4, "tax": 3.2, }, ) assert response.status_code == 200 def test_openapi_schema(client: TestClient): response = client.get("/openapi.json")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 4.8K bytes - Viewed (0)