- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 136 for anything (0.05 seconds)
-
tests/test_request_params/test_header/test_required_str.py
from typing import Annotated import pytest from dirty_equals import AnyThing, IsOneOf, IsPartialDict from fastapi import FastAPI, Header from fastapi.testclient import TestClient from pydantic import BaseModel, Field app = FastAPI() # ===================================================================================== # Without aliases @app.get("/required-str") async def read_required_str(p: Annotated[str, Header()]):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 10K bytes - Click Count (0) -
tests/test_request_params/test_header/test_list.py
from typing import Annotated import pytest from dirty_equals import AnyThing, IsOneOf, IsPartialDict from fastapi import FastAPI, Header from fastapi.testclient import TestClient from pydantic import BaseModel, Field app = FastAPI() # ===================================================================================== # Without aliases @app.get("/required-list-str") async def read_required_list_str(p: Annotated[list[str], Header()]):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:31:34 GMT 2025 - 11K bytes - Click Count (0) -
ci/official/utilities/rename_and_verify_wheels.sh
# list all .whl files by their modification time (ls -t) and delete anything # other than the most recently-modified one (the new one). ls -t *.whl | tail -n +2 | xargs rm fi # Check if size is too big. TFCI_WHL_SIZE_LIMIT is in find's format, which can be # 'k' for kilobytes, 'M' for megabytes, or 'G' for gigabytes, and the + to indicate # "anything greater than" is added by the script.
Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Mon Sep 22 21:39:32 GMT 2025 - 4.4K bytes - Click Count (0) -
docs/en/docs/tutorial/path-params-numeric-validations.md
/// ## Order the parameters as you need { #order-the-parameters-as-you-need } /// tip This is probably not as important or necessary if you use `Annotated`. /// Let's say that you want to declare the query parameter `q` as a required `str`.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 6.1K bytes - Click Count (0) -
docs/en/docs/tutorial/static-files.md
This is different from using an `APIRouter` as a mounted application is completely independent. The OpenAPI and docs from your main application won't include anything from the mounted application, etc. You can read more about this in the [Advanced User Guide](../advanced/index.md){.internal-link target=_blank}. ## Details { #details }
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1.7K bytes - Click Count (0) -
api/maven-api-cli/src/main/java/org/apache/maven/api/cli/InvokerException.java
*/ public InvokerException(@Nullable String message, @Nullable Throwable cause) { super(message, cause); } /** * Exception for intentional exit: No message or anything will be displayed, just the * carried exit code will be returned from invoker {@link Invoker#invoke(InvokerRequest)} method. */ public static final class ExitException extends InvokerException {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Oct 16 10:47:37 GMT 2025 - 2.5K bytes - Click Count (0) -
docs/en/docs/how-to/separate-openapi-schemas.md
...then because `description` has a default value, if you **don't return anything** for that field, it will still have that **default value**. ### Model for Output Response Data { #model-for-output-response-data } If you interact with the docs and check the response, even though the code didn't add anything in one of the `description` fields, the JSON response contains the default value (`null`):Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 4.5K bytes - Click Count (0) -
lib/hg/goreposum.py
# all those branch names and heads as a conservative snapshot # of the entire remote repo state, and use that as the tag sum. # Any change on the server then invalidates the tag sum, # even if it didn't have anything to do with tags, but at least # we will avoid re-cloning a server when there have been no # changes at all. # # Separately, this extension also adds a 'golookup' command that
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Nov 11 15:21:02 GMT 2025 - 2.4K bytes - Click Count (0) -
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md
But that's not the only way to declare dependencies (although it would probably be the more common). The key factor is that a dependency should be a "callable". A "**callable**" in Python is anything that Python can "call" like a function. So, if you have an object `something` (that might _not_ be a function) and you can "call" it (execute it) like: ```Python something() ``` or ```Python
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 6.7K bytes - Click Count (0) -
docs/en/docs/tutorial/dependencies/index.md
And it has the same shape and structure that all your *path operation functions* have. You can think of it as a *path operation function* without the "decorator" (without the `@app.get("/some-path")`). And it can return anything you want. In this case, this dependency expects: * An optional query parameter `q` that is a `str`. * An optional query parameter `skip` that is an `int`, and by default is `0`.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 09:15:41 GMT 2025 - 9.6K bytes - Click Count (0)