- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for lambda1 (0.04 sec)
-
tests/test_arbitrary_types.py
def __init__(self): self.data = [1.0, 2.0, 3.0] FakeNumpyArrayPydantic = Annotated[ FakeNumpyArray, WithJsonSchema(TypeAdapter(list[float]).json_schema()), PlainSerializer(lambda v: v.data), ] class MyModel(BaseModel): model_config = ConfigDict(arbitrary_types_allowed=True) custom_field: FakeNumpyArrayPydantic app = FastAPI() @app.get("/")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 3.8K bytes - Viewed (0) -
fastapi/encoders.py
ENCODERS_BY_TYPE: dict[type[Any], Callable[[Any], Any]] = { bytes: lambda o: o.decode(), Color: str, datetime.date: isoformat, datetime.datetime: isoformat, datetime.time: isoformat, datetime.timedelta: lambda td: td.total_seconds(), Decimal: decimal_encoder, Enum: lambda o: o.value, frozenset: list, deque: list, GeneratorType: list, IPv4Address: str,
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 10.7K bytes - Viewed (0) -
scripts/deploy_docs_status.py
en_links = lang_links.get("en", []) en_links.sort(key=lambda x: x.preview_link) links.extend(en_links) langs = list(lang_links.keys()) langs.sort() for lang in langs: if lang == "en": continue current_lang_links = lang_links[lang] current_lang_links.sort(key=lambda x: x.preview_link) links.extend(current_lang_links)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 30 05:56:53 UTC 2025 - 4.4K bytes - Viewed (0) -
tests/test_jsonable_encoder.py
encoded_instance = jsonable_encoder( instance, custom_encoder={safe_datetime: lambda o: o.strftime("%H:%M:%S")} ) assert encoded_instance["dt_field"] == instance["dt_field"].strftime("%H:%M:%S") encoded_instance = jsonable_encoder( instance, custom_encoder={datetime: lambda o: o.strftime("%H:%M:%S")} ) assert encoded_instance["dt_field"] == instance["dt_field"].strftime("%H:%M:%S")Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 9.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/FessBaseAction.java
/** * Saves informational messages to the session. * The messages will be displayed to the user on the next page load. * * @param validationMessagesLambda a lambda function to configure the messages */ protected void saveInfo(final VaMessenger<FessMessages> validationMessagesLambda) { final FessMessages messages = createMessages();Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 15K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
/* * We avoid using a method reference or lambda here for now: * * - method reference: Inside Google, CacheBuilder is used from the implementation of a custom * ClassLoader that is sometimes used as a system classloader. That's a problem because * method-reference linking tries to look up the system classloader, and it fails because there * isn't one yet. *
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 51.9K bytes - Viewed (0) -
cmd/api-router.go
Queries("retention", "") // GetObjectLegalHold router.Methods(http.MethodGet).Path("/{object:.+}"). HandlerFunc(s3APIMiddleware(api.GetObjectLegalHoldHandler)). Queries("legal-hold", "") // GetObject with lambda ARNs router.Methods(http.MethodGet).Path("/{object:.+}"). HandlerFunc(s3APIMiddleware(api.GetObjectLambdaHandler, traceHdrsS3HFlag)). Queries("lambdaArn", "{lambdaArn:.*}") // GetObject
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Oct 24 04:05:19 UTC 2025 - 23.3K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheBuilder.java
/* * We avoid using a method reference or lambda here for now: * * - method reference: Inside Google, CacheBuilder is used from the implementation of a custom * ClassLoader that is sometimes used as a system classloader. That's a problem because * method-reference linking tries to look up the system classloader, and it fails because there * isn't one yet. *
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 51.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
public <T> void testVariableTypeTokenNotAllowed() { /* * We'd use assertThrows here, but that causes no exception to be thrown under Java 8, * presumably because the ThrowingRunnable lambda triggers some kind of bug in Java 8's * reflection implementation. */ try { new TypeToken<T>() {}; fail(); } catch (IllegalStateException expected) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 89K bytes - Viewed (0) -
guava/src/com/google/common/collect/Maps.java
* ... * ImmutableMap<Color, String> colorNames = * allColors.stream().collect(toImmutableMap(c -> c, c -> c.toString())); * } * * <p>Streams provide a more standard and flexible API and the lambdas make it clear what the keys * and values in the map are. * * @throws NullPointerException if any element of {@code keys} is {@code null}, or if {@code * valueFunction} produces {@code null} for any key
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 163.5K bytes - Viewed (0)