- Sort Score
- Result 10 results
- Languages All
Results 4231 - 4240 of 7,590 for CLASS (0.02 sec)
-
docs_src/schema_extra_example/tutorial003_an_py310.py
from typing import Annotated from fastapi import Body, FastAPI from pydantic import BaseModel app = FastAPI() 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: Annotated[ Item, Body( examples=[ {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 673 bytes - Viewed (0) -
docs_src/path_params/tutorial005.py
from enum import Enum from fastapi import FastAPI class ModelName(str, Enum): alexnet = "alexnet" resnet = "resnet" lenet = "lenet" app = FastAPI() @app.get("/models/{model_name}") async def get_model(model_name: ModelName): if model_name is ModelName.alexnet: return {"model_name": model_name, "message": "Deep Learning FTW!"} if model_name.value == "lenet":
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 26 13:26:03 UTC 2022 - 546 bytes - Viewed (0) -
docs_src/python_types/tutorial011.py
from datetime import datetime from typing import List, Union from pydantic import BaseModel class User(BaseModel): id: int name: str = "John Doe" signup_ts: Union[datetime, None] = None friends: List[int] = [] external_data = { "id": "123", "signup_ts": "2017-06-01 12:22", "friends": [1, "2", b"3"], } user = User(**external_data) print(user)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Sep 02 15:56:35 UTC 2023 - 498 bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/elevateword/ApiAdminElevatewordAction.java
import org.lastaflute.web.response.JsonResponse; import org.lastaflute.web.response.StreamResponse; import jakarta.annotation.Resource; public class ApiAdminElevatewordAction extends FessApiAdminAction { private static final Logger logger = LogManager.getLogger(ApiAdminElevatewordAction.class); @Resource private ElevateWordService elevateWordService; @Resource protected SuggestHelper suggestHelper;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 9.6K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/NetworkBuilder.java
* * <p>A {@code Network} built by this class has the following default properties: * * <ul> * <li>does not allow parallel edges * <li>does not allow self-loops * <li>orders {@link Network#nodes()} and {@link Network#edges()} in the order in which the * elements were added (insertion order) * </ul> * * <p>{@code Network}s built by this class also guarantee that each collection-returning accessor
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 03 01:21:31 UTC 2022 - 7.4K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/AbstractStreamingHasher.java
/** * A convenience base class for implementors of {@code Hasher}; handles accumulating data until an * entire "chunk" (of implementation-dependent length) is ready to be hashed. * * @author Kevin Bourrillion * @author Dimitris Andreou */ // TODO(kevinb): this class still needs some design-and-document-for-inheritance love @ElementTypesAreNonnullByDefault abstract class AbstractStreamingHasher extends AbstractHasher {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jun 15 20:59:00 UTC 2022 - 7.1K bytes - Viewed (0) -
android/guava/src/com/google/common/xml/XmlEscapers.java
* <p>For details on the behavior of the escapers in this class, see sections <a * href="http://www.w3.org/TR/2008/REC-xml-20081126/#charsets">2.2</a> and <a * href="http://www.w3.org/TR/2008/REC-xml-20081126/#syntax">2.4</a> of the XML specification. * * @author Alex Matevossian * @author David Beaumont * @since 15.0 */ @GwtCompatible @ElementTypesAreNonnullByDefault public class XmlEscapers { private XmlEscapers() {}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jan 18 20:55:09 UTC 2022 - 6.5K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingSortedMultiset.java
* thread-safe, even when all of the methods that they depend on are thread-safe. * * @author Louis Wasserman */ @ElementTypesAreNonnullByDefault public abstract class ForwardingSortedMultiset<E extends @Nullable Object> extends ForwardingMultiset<E> implements SortedMultiset<E> { /** Constructor for use by subclasses. */ protected ForwardingSortedMultiset() {} @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jan 23 18:43:40 UTC 2024 - 8.2K bytes - Viewed (0) -
docs/en/docs/advanced/testing-websockets.md
```Python hl_lines="27-31" {!../../docs_src/app_testing/tutorial002.py!} ``` /// note For more details, check Starlette's documentation for <a href="https://www.starlette.io/testclient/#testing-websocket-sessions" class="external-link" target="_blank">testing WebSockets</a>.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 448 bytes - Viewed (0) -
docs_src/query_param_models/tutorial002.py
from typing import List from fastapi import FastAPI, Query from pydantic import BaseModel, Field from typing_extensions import Literal app = FastAPI() class FilterParams(BaseModel): model_config = {"extra": "forbid"} limit: int = Field(100, gt=0, le=100) offset: int = Field(0, ge=0) order_by: Literal["created_at", "updated_at"] = "created_at" tags: List[str] = [] @app.get("/items/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 497 bytes - Viewed (0)