- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 300 for something (0.19 sec)
-
tests/test_repeated_dependency_schema.py
app = FastAPI() def get_header(*, someheader: str = Header()): return someheader def get_something_else(*, someheader: str = Depends(get_header)): return f"{someheader}123" @app.get("/") def get_deps(dep1: str = Depends(get_header), dep2: str = Depends(get_something_else)): return {"dep1": dep1, "dep2": dep2} client = TestClient(app) schema = { "components": {
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 3.2K bytes - Viewed (0) -
docs/en/docs/advanced/events.md
### Async Context Manager If you check, the function is decorated with an `@asynccontextmanager`. That converts the function into something called an "**async context manager**". ```Python hl_lines="1 13" {!../../../docs_src/events/tutorial003.py!} ``` A **context manager** in Python is something that you can use in a `with` statement, for example, `open()` can be used as a context manager: ```Python with open("file.txt") as file:
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
return suite; } private static final String STRING = ASCII + I18N; private static final String LINES = "foo\nbar\r\nbaz\rsomething"; private static final ImmutableList<String> SPLIT_LINES = ImmutableList.of("foo", "bar", "baz", "something"); private TestCharSource source; @Override public void setUp() { source = new TestCharSource(STRING); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 13K bytes - Viewed (0) -
internal/grid/README.md
The server handler function has this signature: `type SingleHandlerFn func(payload []byte) ([]byte, *RemoteErr)`. Sample handler: ```go handler := func(payload []byte) ([]byte, *grid.RemoteErr) { // Do something with payload return []byte("response"), nil } err := manager.RegisterSingleHandler(grid.HandlerDiskInfo, handler) ``` Sample call: ```go // Get a connection to the remote host
Plain Text - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 9.4K bytes - Viewed (0) -
build-logic/documentation/src/test/resources/org/gradle/test/GroovyClassWithMethods.groovy
/** * A method that returns void. */ void voidMethod() { } /** * A method that returns a reference type. */ public final CombinedInterface refTypeMethod(JavaInterface someThing, boolean aFlag) { null } /** * A method that returns a default type. */ def defMethod(def defParam) { null } /**
Groovy - Registered: Wed Apr 17 11:36:08 GMT 2024 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 952 bytes - Viewed (0) -
docs/en/docs/tutorial/first-steps.md
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 9.2K bytes - Viewed (0) -
docs/en/docs/tutorial/middleware.md
* It takes each **request** that comes to your application. * It can then do something to that **request** or run any needed code. * Then it passes the **request** to be processed by the rest of the application (by some *path operation*). * It then takes the **response** generated by the application (by some *path operation*). * It can do something to that **response** or run any needed code. * Then it returns the **response**.
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 2.9K bytes - Viewed (0) -
regression-test/build.gradle.kts
sourceCompatibility(JavaVersion.VERSION_11) } kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() } // issue merging due to conflict with httpclient and something else packagingOptions.resources.excludes += setOf( "META-INF/DEPENDENCIES" ) } dependencies { val okhttpLegacyVersion = "3.12.12" implementation(libs.kotlin.reflect)
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Dec 23 14:46:51 GMT 2023 - 1.6K bytes - Viewed (0) -
.github/workflows/feedback.yml
workflow_dispatch: jobs: feedback: runs-on: ubuntu-latest permissions: issues: write pull-requests: write steps: # Feedback loop: ask for something on PR/Issue and close if not provided or return to the queue on update. # https://github.com/gradle/issue-management-action/blob/main/src/feedback.ts - uses: gradle/issue-management-action@v1 with:
Others - Registered: Wed Apr 24 11:36:11 GMT 2024 - Last Modified: Mon Jan 22 06:29:03 GMT 2024 - 499 bytes - Viewed (0) -
docs_src/handling_errors/tutorial003.py
@app.exception_handler(UnicornException) async def unicorn_exception_handler(request: Request, exc: UnicornException): return JSONResponse( status_code=418, content={"message": f"Oops! {exc.name} did something. There goes a rainbow..."}, ) @app.get("/unicorns/{name}") async def read_unicorn(name: str): if name == "yolo": raise UnicornException(name=name)
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 626 bytes - Viewed (0)