- Sort Score
- Num 10 results
- Language All
Results 501 - 510 of 1,007 for put (0.02 seconds)
-
docs_src/body_multiple_params/tutorial001_an_py39.py
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None @app.put("/items/{item_id}") async def update_item( item_id: Annotated[int, Path(title="The ID of the item to get", ge=0, le=1000)], q: Union[str, None] = None, item: Union[Item, None] = None, ):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 610 bytes - Click Count (0) -
docs/zh/docs/index.md
--- 回到前面的代码示例,**FastAPI** 将会: * 校验 `GET` 和 `PUT` 请求的路径中是否含有 `item_id`。 * 校验 `GET` 和 `PUT` 请求中的 `item_id` 是否为 `int` 类型。 * 如果不是,客户端将会收到清晰有用的错误信息。 * 检查 `GET` 请求中是否有命名为 `q` 的可选查询参数(比如 `http://127.0.0.1:8000/items/foo?q=somequery`)。 * 因为 `q` 被声明为 `= None`,所以它是可选的。 * 如果没有 `None` 它将会是必需的 (如 `PUT` 例子中的请求体)。 * 对于访问 `/items/{item_id}` 的 `PUT` 请求,将请求体读取为 JSON 并: * 检查是否有必需属性 `name` 并且值为 `str` 类型 。Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 18.2K bytes - Click Count (0) -
tests/test_operations_signatures.py
import inspect from fastapi import APIRouter, FastAPI method_names = ["get", "put", "post", "delete", "options", "head", "patch", "trace"] def test_signatures_consistency(): base_sig = inspect.signature(APIRouter.get) for method_name in method_names: router_method = getattr(APIRouter, method_name) app_method = getattr(FastAPI, method_name) router_sig = inspect.signature(router_method)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon May 27 12:08:13 GMT 2019 - 934 bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java
Object value = new Object(); result.put(key, value); } result.put(extraKey, extraValue); result.put(extraValue, null); return result; } }; LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().build(loader); cache.asMap().put(extraKey, extraKey);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 91.1K bytes - Click Count (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/PluginsMetadataGenerator.java
Metadata metadata = it.next(); if (metadata instanceof PluginsMetadata pluginsMetadata) { it.remove(); processedPlugins.put(pluginsMetadata.getGroupId(), pluginsMetadata); } } } @Override public Collection<? extends Metadata> prepare(Collection<? extends Artifact> artifacts) {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Mar 25 09:45:07 GMT 2025 - 7.8K bytes - Click Count (0) -
docs/en/docs/python-types.md
#### List { #list } For example, let's define a variable to be a `list` of `str`. Declare the variable, with the same colon (`:`) syntax. As the type, put `list`. As the list is a type that contains some internal types, you put them in square brackets: {* ../../docs_src/python_types/tutorial006_py39.py hl[1] *} /// info Those internal types in the square brackets are called "type parameters".Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 15.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractBiMap.java
@Override public boolean containsValue(@Nullable Object value) { return inverse.containsKey(value); } // Modification Operations @CanIgnoreReturnValue @Override public @Nullable V put(@ParametricNullness K key, @ParametricNullness V value) { return putInBothMaps(key, value, false); } @CanIgnoreReturnValue @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 14.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginDescriptorCache.java
descriptors.putIfAbsent(key, clone(desc)); } } } return clone(desc); } @Override public void put(Key cacheKey, PluginDescriptor pluginDescriptor) { descriptors.put(cacheKey, clone(pluginDescriptor)); } protected static PluginDescriptor clone(PluginDescriptor original) { return new PluginDescriptor(original); }
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 5.9K bytes - Click Count (0) -
guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java
* @throws UnsupportedOperationException always */ @CanIgnoreReturnValue @Deprecated @Override @DoNotCall("Always throws UnsupportedOperationException") public @Nullable B put(TypeToken<? extends @NonNull B> key, @ParametricNullness B value) { throw new UnsupportedOperationException("Please use putInstance() instead."); } /** * Not supported. Use {@link #putInstance} instead. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 5.7K bytes - Click Count (0) -
api/maven-api-metadata/src/main/mdo/metadata.mdo
{ String key = getSnapshotVersionKey( sv ); versions.put( key, sv ); } // never convert from legacy format if ( !versions.isEmpty() ) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed May 15 17:32:27 GMT 2024 - 15.8K bytes - Click Count (0)