- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 401 for zelf (0.08 seconds)
-
tests/test_dependency_after_yield_websockets.py
from fastapi import Depends, FastAPI, WebSocket from fastapi.testclient import TestClient class Session: def __init__(self) -> None: self.data = ["foo", "bar", "baz"] self.open = True def __iter__(self) -> Generator[str, None, None]: for item in self.data: if self.open: yield item else: raise ValueError("Session closed") @contextmanagerCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 2K bytes - Click Count (0) -
fastapi/datastructures.py
if the overridden default value was truthy. """ def __init__(self, value: Any): self.value = value def __bool__(self) -> bool: return bool(self.value) def __eq__(self, o: object) -> bool: return isinstance(o, DefaultPlaceholder) and o.value == self.value DefaultType = TypeVar("DefaultType")Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 5.2K bytes - Click Count (0) -
api/go1.26.txt
pkg debug/elf, const R_LARCH_TLS_DESC_HI20 = 115 #75562 pkg debug/elf, const R_LARCH_TLS_DESC_HI20 R_LARCH #75562 pkg debug/elf, const R_LARCH_TLS_DESC_LD = 119 #75562 pkg debug/elf, const R_LARCH_TLS_DESC_LD R_LARCH #75562 pkg debug/elf, const R_LARCH_TLS_DESC_LO12 = 116 #75562 pkg debug/elf, const R_LARCH_TLS_DESC_LO12 R_LARCH #75562 pkg debug/elf, const R_LARCH_TLS_DESC_PCREL20_S2 = 126 #75562
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Dec 11 19:57:52 GMT 2025 - 11.5K bytes - Click Count (0) -
tests/test_dependency_class.py
class CallableDependency: def __call__(self, value: str) -> str: return value class CallableGenDependency: def __call__(self, value: str) -> Generator[str, None, None]: yield value class AsyncCallableDependency: async def __call__(self, value: str) -> str: return value class AsyncCallableGenDependency: async def __call__(self, value: str) -> AsyncGenerator[str, None]:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 4.4K bytes - Click Count (0) -
docs_src/dependencies/tutorial011_py310.py
from fastapi import Depends, FastAPI app = FastAPI() class FixedContentQueryChecker: def __init__(self, fixed_content: str): self.fixed_content = fixed_content def __call__(self, q: str = ""): if q: return self.fixed_content in q return False checker = FixedContentQueryChecker("bar") @app.get("/query-checker/")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 504 bytes - Click Count (0) -
api/go1.21.txt
pkg debug/elf, const DF_1_NODIRECT DynFlag1 #56887 pkg debug/elf, const DF_1_NODUMP = 4096 #56887 pkg debug/elf, const DF_1_NODUMP DynFlag1 #56887 pkg debug/elf, const DF_1_NOHDR = 1048576 #56887 pkg debug/elf, const DF_1_NOHDR DynFlag1 #56887 pkg debug/elf, const DF_1_NOKSYMS = 524288 #56887 pkg debug/elf, const DF_1_NOKSYMS DynFlag1 #56887 pkg debug/elf, const DF_1_NOOPEN = 64 #56887
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Mon Aug 07 09:39:17 GMT 2023 - 25.6K bytes - Click Count (0) -
docs_src/dependencies/tutorial002_py310.py
app = FastAPI() fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}] class CommonQueryParams: def __init__(self, q: str | None = None, skip: int = 0, limit: int = 100): self.q = q self.skip = skip self.limit = limit @app.get("/items/") async def read_items(commons: CommonQueryParams = Depends(CommonQueryParams)): response = {} if commons.q:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 624 bytes - Click Count (0) -
docs_src/dependencies/tutorial004_py310.py
app = FastAPI() fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}] class CommonQueryParams: def __init__(self, q: str | None = None, skip: int = 0, limit: int = 100): self.q = q self.skip = skip self.limit = limit @app.get("/items/") async def read_items(commons: CommonQueryParams = Depends()): response = {} if commons.q:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 607 bytes - Click Count (0) -
docs_src/dependencies/tutorial004_an_py310.py
app = FastAPI() fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}] class CommonQueryParams: def __init__(self, q: str | None = None, skip: int = 0, limit: int = 100): self.q = q self.skip = skip self.limit = limit @app.get("/items/") async def read_items(commons: Annotated[CommonQueryParams, Depends()]): response = {} if commons.q:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 647 bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Multisets.java
Multiset<E> self, Collection<? extends E> elements) { checkNotNull(self); checkNotNull(elements); if (elements instanceof Multiset) { return addAllImpl(self, (Multiset<? extends E>) elements); } else if (elements.isEmpty()) { return false; } else { return Iterators.addAll(self, elements.iterator()); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 41.3K bytes - Click Count (0)