- Sort Score
- Result 10 results
- Languages All
Results 1541 - 1550 of 6,364 for classId (0.11 sec)
-
docs_src/dependencies/tutorial008d_an_py39.py
from typing import Annotated from fastapi import Depends, FastAPI, HTTPException app = FastAPI() class InternalError(Exception): pass def get_username(): try: yield "Rick" except InternalError: print("We don't swallow the internal error here, we raise again 😎") raise @app.get("/items/{item_id}") def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 734 bytes - Viewed (0) -
docs_src/path_operation_configuration/tutorial004_py310.py
from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None tags: set[str] = set() @app.post("/items/", response_model=Item, summary="Create an item") async def create_item(item: Item): """ Create an item with all the information: - **name**: each item must have a name
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 638 bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java
private static boolean isLongTimeUnitBased(Method method) { Class<?>[] parameterTypes = method.getParameterTypes(); return parameterTypes.length >= 2 && parameterTypes[parameterTypes.length - 2] == long.class && parameterTypes[parameterTypes.length - 1] == TimeUnit.class; } /** Determines whether the given method takes a Duration as its last parameter. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:18:12 UTC 2024 - 27.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/HashMultimapTest.java
assertEquals(15, multimap.expectedValuesPerKey); } public void testCreateFromIllegalSizes() { assertThrows(IllegalArgumentException.class, () -> HashMultimap.create(-20, 15)); assertThrows(IllegalArgumentException.class, () -> HashMultimap.create(20, -15)); } public void testEmptyMultimapsEqual() { Multimap<String, Integer> setMultimap = HashMultimap.create();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 4.3K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/AbstractValueGraph.java
import java.util.Map; import java.util.Set; import javax.annotation.CheckForNull; /** * This class provides a skeletal implementation of {@link ValueGraph}. It is recommended to extend * this class rather than implement {@link ValueGraph} directly. * * <p>The methods implemented in this class should not be overridden unless the subclass admits a * more efficient implementation. * * @author James Sexton
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 17 13:59:28 UTC 2023 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/HashMultimapTest.java
assertEquals(15, multimap.expectedValuesPerKey); } public void testCreateFromIllegalSizes() { assertThrows(IllegalArgumentException.class, () -> HashMultimap.create(-20, 15)); assertThrows(IllegalArgumentException.class, () -> HashMultimap.create(20, -15)); } public void testEmptyMultimapsEqual() { Multimap<String, Integer> setMultimap = HashMultimap.create();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 4.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/MoreFilesTest.java
assertFalse(Files.exists(parent)); assertThrows(IOException.class, () -> MoreFiles.createParentDirectories(file)); } public void testCreateParentDirectories_nonDirectoryParentExists() throws IOException { Path parent = createTempFile(); assertTrue(Files.isRegularFile(parent)); Path file = parent.resolve("foo"); assertThrows(IOException.class, () -> MoreFiles.createParentDirectories(file)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 27.4K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/ExecutionSequencer.java
* running on it. This class, by contrast, does not expose an {@code Executor} API.) * </ul> * * <p>If you don't need the features of this class, you may prefer {@code newSequentialExecutor} for * its simplicity and ability to accommodate interruption. * * @since 26.0 */ @ElementTypesAreNonnullByDefault @J2ktIncompatible public final class ExecutionSequencer { private ExecutionSequencer() {}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 01 21:46:34 UTC 2024 - 22.1K bytes - Viewed (0) -
android/guava/src/com/google/common/base/MoreObjects.java
* instance's {@link Object#getClass()}. * * <p>Note that in GWT, class names are often obfuscated. * * @param clazz the {@link Class} of the instance * @since 18.0 (since 7.0 as {@code Objects.toStringHelper()}). */ public static ToStringHelper toStringHelper(Class<?> clazz) { return new ToStringHelper(clazz.getSimpleName()); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 10 15:41:27 UTC 2024 - 16.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/ws/MessageInflater.kt
import java.io.Closeable import java.io.IOException import java.util.zip.Inflater import okio.Buffer import okio.InflaterSource private const val OCTETS_TO_ADD_BEFORE_INFLATION = 0x0000ffff class MessageInflater( private val noContextTakeover: Boolean, ) : Closeable { private val deflatedBytes = Buffer() private val inflater = Inflater( // nowrap (omits zlib header): true, )
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.8K bytes - Viewed (0)