- Sort Score
- Num 10 results
- Language All
Results 261 - 270 of 1,155 for noneOf (0.04 seconds)
-
cmd/erasure-object-conditional_test.go
for i := range erasureDisks[:8] { erasureDisks[i] = nil } return erasureDisks } z.serverPools[0].erasureDisksMu.Unlock() t.Run("if-none-match with read quorum failure", func(t *testing.T) { // Test Case 1: if-none-match (create only if doesn't exist) // With if-none-match: *, this should only succeed if object doesn't exist. // Since read quorum fails, we can't determine if object exists. opts := ObjectOptions{
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Oct 24 04:05:31 GMT 2025 - 4.9K bytes - Click Count (0) -
docs_src/pydantic_v1_in_v2/tutorial002_an_py310.py
from fastapi import FastAPI from pydantic.v1 import BaseModel class Item(BaseModel): name: str description: str | None = None size: float app = FastAPI() @app.post("/items/") async def create_item(item: Item) -> Item:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Oct 11 16:45:54 GMT 2025 - 252 bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial002_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 276 bytes - Click Count (0) -
tests/test_openapi_examples.py
"Path Two": { "value": "item_2", }, }, ), ): return item_id @app.get("/query_examples/") def query_examples( data: str | None = Query( default=None, examples=[ "json_schema_query1", "json_schema_query2", ], openapi_examples={ "Query One": { "summary": "Query One Summary",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 16.4K bytes - Click Count (0) -
tests/test_infer_param_optionality.py
@item_router.get("/") def get_items(user_id: str | None = None): if user_id is None: return [{"item_id": "i1", "user_id": "u1"}, {"item_id": "i2", "user_id": "u2"}] else: return [{"item_id": "i2", "user_id": user_id}] @item_router.get("/{item_id}") def get_item(item_id: str, user_id: str | None = None): if user_id is None: return {"item_id": item_id} else:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 13.2K bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial003_an_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 330 bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial009_an_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 314 bytes - Click Count (0) -
fastapi/responses.py
from typing_extensions import deprecated try: import ujson except ImportError: # pragma: nocover ujson = None # type: ignore try: import orjson except ImportError: # pragma: nocover orjson = None # type: ignore @deprecated( "UJSONResponse is deprecated, FastAPI now serializes data directly to JSON "Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 09:21:52 GMT 2026 - 3.6K bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial004_an_py310.py
from typing import Annotated from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items( q: Annotated[ str | None, Query(min_length=3, max_length=50, pattern="^fixedquery$") ] = None, ): results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]} if q: results.update({"q": q})
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Oct 24 20:26:06 GMT 2023 - 368 bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/DispatcherTest.kt
fun enqueuedJobsRunImmediately() { client.newCall(newRequest("http://a/1")).enqueue(callback) executor.assertJobs("http://a/1") assertThat(eventRecorder.eventSequence).none { it.isInstanceOf<DispatcherQueueStart>() } assertThat(eventRecorder.eventSequence).none { it.isInstanceOf<DispatcherQueueEnd>() } } @Test fun maxRequestsEnforced() { dispatcher.maxRequests = 3
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 15.8K bytes - Click Count (0)