- Sort Score
- Result 10 results
- Languages All
Results 2521 - 2530 of 3,687 for inst (0.09 sec)
-
docs_src/extra_models/tutorial003_py310.py
app = FastAPI() class BaseItem(BaseModel): description: str type: str class CarItem(BaseItem): type: str = "car" class PlaneItem(BaseItem): type: str = "plane" size: int items = { "item1": {"description": "All my friends drive a low rider", "type": "car"}, "item2": { "description": "Music is my aeroplane, it's my aeroplane", "type": "plane",
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 644 bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial004_an_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Jul 01 16:43:29 UTC 2023 - 936 bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/stopwords/StopwordsFile.java
public synchronized PagingList<StopwordsItem> selectList(final int offset, final int size) { if (stopwordsItemList == null) { reload(null); } if (offset >= stopwordsItemList.size() || offset < 0) { return new PagingList<>(Collections.<StopwordsItem> emptyList(), offset, size, stopwordsItemList.size()); } int toIndex = offset + size;
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 20 07:09:00 UTC 2025 - 13K bytes - Viewed (0) -
docs_src/additional_status_codes/tutorial001_an_py39.py
@app.put("/items/{item_id}") async def upsert_item( item_id: str, name: Annotated[Union[str, None], Body()] = None, size: Annotated[Union[int, None], Body()] = None, ): if item_id in items: item = items[item_id] item["name"] = name item["size"] = size return item else: item = {"name": name, "size": size}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 705 bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial002_py310.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 479 bytes - Viewed (0) -
docs_src/query_params/tutorial004_py39.py
from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/users/{user_id}/items/{item_id}") async def read_user_item( user_id: int, item_id: str, q: Union[str, None] = None, short: bool = False ): item = {"item_id": item_id, "owner_id": user_id} if q: item.update({"q": q}) if not short: item.update(
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 468 bytes - Viewed (0) -
docs/en/docs/index.md
@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): return {"item_name": item.name, "item_id": item_id} ``` The `fastapi dev` server should reload automatically.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Thu Dec 25 11:01:37 UTC 2025 - 23.5K bytes - Viewed (0) -
docs_src/custom_request_and_route/tutorial002_an_py310.py
return custom_route_handler app = FastAPI() app.router.route_class = ValidationErrorLoggingRoute @app.post("/") async def sum_numbers(numbers: Annotated[list[int], Body()]):Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 08:55:32 UTC 2025 - 974 bytes - Viewed (0) -
src/test/java/jcifs/smb/DosFileFilterTest.java
"0, 1, false", // No filter attributes "1, 0, false", // No file attributes "0, 0, false" // No attributes on either }) void testAccept(int filterAttributes, int fileAttributes, boolean expectedResult) throws SmbException { // Given a DosFileFilter with specific attributes dosFileFilter = new DosFileFilter("*.*", filterAttributes);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Authenticator.kt
* to limit the retries by the class of errors and number of attempts. To get the number of * attempts to the current point use this function. * * ```java * private int responseCount(Response response) { * int result = 1; * while ((response = response.priorResponse()) != null) { * result++; * } * return result; * } * ``` * * [1]: https://tools.ietf.org/html/rfc2817
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.5K bytes - Viewed (0)