- Sort Score
- Num 10 results
- Language All
Results 151 - 160 of 525 for functions (0.04 seconds)
-
docs/es/docs/how-to/custom-docs-ui-assets.md
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 8.6K bytes - Click Count (0) -
buildscripts/test-timeout.sh
exit 1 fi trap 'catch $LINENO' ERR function purge() { rm -rf "$1" } # shellcheck disable=SC2120 catch() { if [ $# -ne 0 ]; then echo "error on line $1" fi echo "Cleaning up instances of MinIO" pkill minio || true pkill -9 minio || true purge "$WORK_DIR" if [ $# -ne 0 ]; then exit $# fi } catch function gen_put_request() { hdr_sleep=$1 body_sleep=$2
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Dec 02 13:21:17 GMT 2024 - 2.9K bytes - Click Count (0) -
docs/es/docs/tutorial/response-model.md
Continuemos con el ejemplo anterior. Queríamos **anotar la función con un tipo**, pero queríamos poder devolver desde la función algo que en realidad incluya **más datos**. Queremos que FastAPI continúe **filtrando** los datos usando el modelo de response. Para que, incluso cuando la función devuelva más datos, el response solo incluya los campos declarados en el modelo de response.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 17.7K bytes - Click Count (0) -
fastapi/openapi/docs.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 10.1K bytes - Click Count (0) -
tests/test_dependency_yield_scope.py
def test_app_level_dep_scope_function() -> None: app = FastAPI(dependencies=[Depends(raise_after_yield, scope="function")]) @app.get("/app-scope-function") def get_app_scope_function(): return {"status": "ok"} with TestClient(app) as client: response = client.get("/app-scope-function") assert response.status_code == 503 assert response.json() == {"detail": "Exception after yield"}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 6.7K bytes - Click Count (0) -
buildscripts/verify-healing-with-root-disks.sh
echo "minio executable binary not found in current directory" exit 1 fi WORK_DIR="$(mktemp -d)" MINIO_CONFIG_DIR="$WORK_DIR/.minio" MINIO=("$PWD/minio" --config-dir "$MINIO_CONFIG_DIR" server) function start_minio() { start_port=$1 export MINIO_ROOT_USER=minio export MINIO_ROOT_PASSWORD=minio123 unset MINIO_KMS_AUTO_ENCRYPTION # do not auto-encrypt objects unset MINIO_CI_CD unset CI args=()
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri May 26 05:07:25 GMT 2023 - 2.2K bytes - Click Count (0) -
internal/cachevalue/cache.go
// Cache contains a synchronized value that is considered valid // for a specific amount of time. // An Update function must be set to provide an updated value when needed. type Cache[T any] struct { // updateFn must return an updated value. // If an error is returned the cached value is not set. // Only one caller will call this function at any time, others will be blocking. // The returned value can no longer be modified once returned.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri May 24 12:50:46 GMT 2024 - 4.4K bytes - Click Count (0) -
buildscripts/heal-inconsistent-versions.sh
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri May 26 05:07:25 GMT 2023 - 1.9K bytes - Click Count (0) -
misc/chrome/gophertool/background.js
chrome.omnibox.onInputEntered.addListener(function(t) { var url = urlForInput(t); if (url) { chrome.tabs.query({ "active": true, "currentWindow": true }, function(tab) { if (!tab) return; chrome.tabs.update(tab.id, { "url": url, "selected": true }); }); }
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Nov 18 18:14:37 GMT 2019 - 286 bytes - Click Count (1) -
docs/en/docs/tutorial/query-params-str-validations.md
**Using `Annotated` is recommended** instead of the default value in function parameters, it is **better** for multiple reasons. 🤓 The **default** value of the **function parameter** is the **actual default** value, that's more intuitive with Python in general. 😌
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 16.7K bytes - Click Count (0)