- Sort Score
- Num 10 results
- Language All
Results 2371 - 2380 of 4,245 for get3 (0.02 seconds)
-
docs/en/docs/tutorial/extra-models.md
user_dict = user_in.model_dump() ``` we now have a `dict` with the data in the variable `user_dict` (it's a `dict` instead of a Pydantic model object). And if we call: ```Python print(user_dict) ``` we would get a Python `dict` with: ```Python { 'username': 'john', 'password': 'secret', 'email': '******@****.***', 'full_name': None, } ``` #### Unpacking a `dict` { #unpacking-a-dict }
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 6.9K bytes - Click Count (0) -
docs_src/additional_responses/tutorial001_py39.py
from pydantic import BaseModel class Item(BaseModel): id: str value: str class Message(BaseModel): message: str app = FastAPI() @app.get("/items/{item_id}", response_model=Item, responses={404: {"model": Message}}) async def read_item(item_id: str): if item_id == "foo": return {"id": "foo", "value": "there goes my hero"}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 506 bytes - Click Count (0) -
docs_src/events/tutorial003_py39.py
ml_models["answer_to_everything"] = fake_answer_to_everything_ml_model yield # Clean up the ML models and release the resources ml_models.clear() app = FastAPI(lifespan=lifespan) @app.get("/predict") async def predict(x: float): result = ml_models["answer_to_everything"](x)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 569 bytes - Click Count (0) -
docs_src/query_param_models/tutorial002_an_py310.py
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/") async def read_items(filter_query: Annotated[FilterParams, Query()]):Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Sep 17 18:54:10 GMT 2024 - 483 bytes - Click Count (0) -
tests/test_tutorial/test_dependencies/test_tutorial008e.py
mod = importlib.import_module(f"docs_src.dependencies.{request.param}") client = TestClient(mod.app) return client def test_get_users_me(client: TestClient): response = client.get("/users/me") assert response.status_code == 200, response.text
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 574 bytes - Click Count (0) -
module-tests/src/main/java/okhttp3/modules/Main.java
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Sep 21 06:22:22 GMT 2025 - 934 bytes - Click Count (0) -
okhttp-brotli/src/main/kotlin/okhttp3/brotli/Brotli.kt
import okio.BufferedSource import okio.Source import okio.source import org.brotli.dec.BrotliInputStream object Brotli : CompressionInterceptor.DecompressionAlgorithm { override val encoding: String get() = "br" override fun decompress(compressedSource: BufferedSource): Source = BrotliInputStream(compressedSource.inputStream()).source()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Oct 07 15:15:28 GMT 2025 - 1010 bytes - Click Count (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java
flags &= ~flag; } /** * Sets a specific flag * @param flag the flag to set */ public void setFlag(final int flag) { flags |= flag; } /** * Get the result of the DCERPC call. * @return result exception if the call failed, null otherwise */ public DcerpcException getResult() { if (result != 0) { return new DcerpcException(result);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6K bytes - Click Count (0) -
internal/lsync/lrwmutex.go
// blocks until the mutex is available. func (lm *LRWMutex) Lock() { const isWriteLock = true lm.lockLoop(context.Background(), lm.id, lm.source, math.MaxInt64, isWriteLock) } // GetLock tries to get a write lock on lm before the timeout occurs. func (lm *LRWMutex) GetLock(ctx context.Context, id string, source string, timeout time.Duration) (locked bool) { const isWriteLock = true
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Jan 02 17:15:06 GMT 2022 - 4.8K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleKotlinDslReferencePlugin.java
Property<String> defaultDokkaVersion = getDokkaExtension(project).getDokkaEngineVersion(); defaultDokkaVersion.set(dokkaVersionOverride.convention(defaultDokkaVersion.get())); } /** * The name of the module is part of the URI for deep links, changing it will break existing links. * The name of the module must match the first header of {@code kotlin/Module.md} file. */
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed May 28 11:34:42 GMT 2025 - 7.4K bytes - Click Count (0)