- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for Literal (0.04 sec)
-
docs/en/docs/release-notes.md
Use Pydantic models for `Query` parameters: ```python from typing import Annotated, Literal from fastapi import FastAPI, Query from pydantic import BaseModel, Field app = FastAPI() class FilterParams(BaseModel): 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] = []
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri Sep 05 12:48:45 UTC 2025 - 544.1K bytes - Viewed (0) -
src/archive/tar/strconv.go
// record is formatted as: // // "%d %s=%s\n" % (size, key, value) // // Keys and values should be UTF-8, but the number of bad writers out there // forces us to be a more liberal. // Thus, we only reject all keys with NUL, and only reject NULs in values // for the PAX version of the USTAR string fields. // The key must not contain an '=' character. func validPAXRecord(k, v string) bool {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Sep 08 17:08:20 UTC 2025 - 9.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java
* * This method replaces all occurrences of '*' with '\*' and * all occurrences of '?' with '\?' to ensure that these characters * are treated as literals rather than wildcard characters in queries. * * @param query the query string to escape * @return the escaped query string */ public static String escapeWildcardQuery(final String query) {Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 17.4K bytes - Viewed (0) -
RELEASE.md
* TF SavedModel: * Custom gradients are now saved by default. See `tf.saved_model.SaveOptions` to disable this. * The saved_model_cli's `--input_examples` inputs are now restricted to python literals to avoid code injection. * XLA: * Add a new API that allows custom call functions to signal errors. The old API will be deprecated in a future release. SeeRegistered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Mon Aug 18 20:54:38 UTC 2025 - 740K bytes - Viewed (2)