- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 359 for _self (0.02 seconds)
-
tests/test_custom_middleware_exception.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.8K bytes - Click Count (0) -
scripts/people.py
class RateLimiter: def __init__(self) -> None: self.last_query_cost: int = 1 self.remaining_points: int = 5000 self.reset_at: datetime = datetime.fromtimestamp(0, timezone.utc) self.last_request_start_time: datetime = datetime.fromtimestamp(0, timezone.utc) self.speed_multiplier: float = 1.0 def __enter__(self) -> "RateLimiter": now = datetime.now(tz=timezone.utc)Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Mar 23 13:51:24 GMT 2026 - 15K bytes - Click Count (0) -
docs_src/dependencies/tutorial010_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 292 bytes - Click Count (0) -
docs_src/custom_request_and_route/tutorial001_py310.py
class GzipRequest(Request): async def body(self) -> bytes: if not hasattr(self, "_body"): body = await super().body() if "gzip" in self.headers.getlist("Content-Encoding"): body = gzip.decompress(body) self._body = body return self._body class GzipRoute(APIRoute): def get_route_handler(self) -> Callable:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 976 bytes - Click Count (0) -
docs_src/custom_request_and_route/tutorial001_an_py310.py
class GzipRequest(Request): async def body(self) -> bytes: if not hasattr(self, "_body"): body = await super().body() if "gzip" in self.headers.getlist("Content-Encoding"): body = gzip.decompress(body) self._body = body return self._body class GzipRoute(APIRoute): def get_route_handler(self) -> Callable:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 1015 bytes - Click Count (0) -
src/main/resources/crawler/transformer.xml
<postConstruct name="addFieldRule"> <arg>"title"</arg> <arg>"//TITLE"</arg> <arg>true</arg> </postConstruct> <postConstruct name="addFieldRule"> <arg>"important_content"</arg> <arg>"//*[self::H1 or self::H2 or self::H3]"</arg> <arg>true</arg> </postConstruct> </component> <component name="fessFileTransformer" class="org.codelibs.fess.crawler.transformer.FessFileTransformer" instance="singleton">
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Dec 20 13:14:54 GMT 2024 - 1.7K bytes - Click Count (0) -
tests/test_dependency_wrapped.py
@noop_wrap def __call__(self): return True class_instance_wrapped_dep = ClassInstanceWrappedDep() class ClassInstanceWrappedAsyncDep: @noop_wrap_async def __call__(self): return True class_instance_wrapped_async_dep = ClassInstanceWrappedAsyncDep() class ClassInstanceWrappedGenDep: @noop_wrap def __call__(self): yield TrueCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 11.2K bytes - Click Count (0) -
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) -
android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java
protected B usingGenerator(G subjectGenerator) { this.subjectGenerator = subjectGenerator; return self(); } public G getSubjectGenerator() { return subjectGenerator; } @CanIgnoreReturnValue public B withSetUp(Runnable setUp) { this.setUp = setUp; return self(); } public Runnable getSetUp() { return setUp; } @CanIgnoreReturnValue
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 10.4K bytes - Click Count (0)