- Sort Score
- Num 10 results
- Language All
Results 481 - 490 of 1,681 for tone (0.06 seconds)
-
cmd/notification.go
wg.Add(1) go func(ctx context.Context, peerChannel <-chan MetricV2, wg *sync.WaitGroup) { defer wg.Done() for { select { case m, ok := <-peerChannel: if !ok { return } select { case ch <- m: case <-ctx.Done(): return } case <-ctx.Done(): return } } }(ctx, peerChannels[index], &wg) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 46K bytes - Click Count (0) -
docs_src/pydantic_v1_in_v2/tutorial004_an_py310.py
from typing import Annotated from fastapi import FastAPI from fastapi.temp_pydantic_v1_params import Body from pydantic.v1 import BaseModel class Item(BaseModel): name: str description: str | None = None size: float app = FastAPI() @app.post("/items/") async def create_item(item: Annotated[Item, Body(embed=True)]) -> Item:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Oct 11 16:45:54 GMT 2025 - 360 bytes - Click Count (0) -
docs/de/docs/tutorial/body-multiple-params.md
Und Sie können auch Body-Parameter als optional kennzeichnen, indem Sie den Defaultwert auf `None` setzen: {* ../../docs_src/body_multiple_params/tutorial001_an_py310.py hl[18:20] *} /// note | Hinweis Beachten Sie, dass in diesem Fall das `item`, welches vom Body genommen wird, optional ist. Da es `None` als Defaultwert hat. /// ## Mehrere Body-Parameter { #multiple-body-parameters }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 07:57:30 GMT 2026 - 5.4K bytes - Click Count (0) -
docs/en/docs/tutorial/body-multiple-params.md
And you can also declare body parameters as optional, by setting the default to `None`: {* ../../docs_src/body_multiple_params/tutorial001_an_py310.py hl[18:20] *} /// note Notice that, in this case, the `item` that would be taken from the body is optional. As it has a `None` default value. /// ## Multiple body parameters { #multiple-body-parameters }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:32:12 GMT 2026 - 4.8K bytes - Click Count (0) -
docs_src/query_params/tutorial003_py310.py
from fastapi import FastAPI app = FastAPI() @app.get("/items/{item_id}") async def read_item(item_id: str, q: str | None = None, short: bool = False): item = {"item_id": item_id} if q: item.update({"q": q}) if not short: item.update( {"description": "This is an amazing item that has a long description"} )
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 374 bytes - Click Count (0) -
internal/grid/connection.go
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 46.9K bytes - Click Count (0) -
src/cmd/asm/internal/asm/expr_test.go
t.Errorf("#%d: %q: expected error %q; got none", i, test.input, test.error) } continue } if !strings.Contains(err.Error(), test.error) { t.Errorf("#%d: expected error %q; got %q", i, test.error, err) continue } } } func runBadTest(i int, test badExprTest, t *testing.T) (err error) { p := NewParser(nil, nil, nil) // Expression evaluation uses none of these fields of the parser.
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Aug 29 07:48:38 GMT 2023 - 3.2K bytes - Click Count (0) -
docs_src/path_params_numeric_validations/tutorial001_an_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 375 bytes - Click Count (0) -
tests/test_callable_endpoint.py
from functools import partial from fastapi import FastAPI from fastapi.testclient import TestClient def main(some_arg, q: str | None = None): return {"some_arg": some_arg, "q": q} endpoint = partial(main, "foo") app = FastAPI() app.get("/")(endpoint) client = TestClient(app) def test_partial(): response = client.get("/?q=bar") data = response.json()
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 426 bytes - Click Count (0) -
tests/test_dependency_wrapped.py
return True @noop_wrap def wrapped_gen_dependency() -> Generator[bool, None, None]: yield True @noop_wrap async def async_wrapped_dependency() -> bool: return True @noop_wrap async def async_wrapped_gen_dependency() -> AsyncGenerator[bool, None]: yield True @app.get("/wrapped-dependency/")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 11.2K bytes - Click Count (0)