- Sort Score
- Num 10 results
- Language All
Results 1011 - 1020 of 2,994 for class (0.01 seconds)
-
docs_src/dependencies/tutorial002_py310.py
from fastapi import Depends, FastAPI 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 = {}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 624 bytes - Click Count (0) -
docs_src/dependencies/tutorial004_py310.py
from fastapi import Depends, FastAPI 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 = {}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 607 bytes - Click Count (0) -
docs_src/openapi_webhooks/tutorial001_py39.py
from datetime import datetime from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Subscription(BaseModel): username: str monthly_fee: float start_date: datetime @app.webhooks.post("new-subscription") def new_subscription(body: Subscription): """ When a new user subscribes to your service we'll send you a POST request with this
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 550 bytes - Click Count (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/FileSizeFormatTest.java
import static org.junit.jupiter.api.Assertions.assertThrows; @Deprecated class FileSizeFormatTest { @Test void testNegativeSize() { FileSizeFormat format = new FileSizeFormat(); long negativeSize = -100L; assertThrows(IllegalArgumentException.class, () -> format.format(negativeSize)); } @Test void testSize() {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Mar 21 04:56:21 GMT 2025 - 10.5K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ReactorContext.java
import org.apache.maven.execution.MavenExecutionResult; /** * Context that is fixed for the entire reactor build. * * @since 3.0 * NOTE: This class is not part of any public api and can be changed or deleted without prior notice. */ public class ReactorContext { private final MavenExecutionResult result; private final ClassLoader originalContextClassLoader;Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.9K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/plugin/internal/MavenPluginJavaPrerequisiteCheckerTest.java
import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; class MavenPluginJavaPrerequisiteCheckerTest { @Test void testMatchesVersion() { MavenPluginJavaPrerequisiteChecker checker = new MavenPluginJavaPrerequisiteChecker(new GenericVersionScheme());Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.7K bytes - Click Count (0) -
build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/PluginEntry.kt
package org.gradle.kotlin.dsl.internal.sharedruntime.codegen import java.io.File import java.io.IOException import java.util.Properties import java.util.jar.JarEntry import java.util.jar.JarFile data class PluginEntry(val pluginId: String, val implementationClass: String) fun pluginEntriesFrom(jar: File): List<PluginEntry> = try { JarFile(jar, false).use { jarFile -> jarFile.entries().asSequence().filter {
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri Jun 28 08:29:28 GMT 2024 - 1.8K bytes - Click Count (0) -
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri Jun 06 17:52:09 GMT 2025 - 16K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java
import static org.junit.jupiter.api.Assertions.assertNotSame; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; /** */ @PlexusTest @Deprecated class DefaultWagonManagerTest { @Inject private WagonManager wagonManager; private final TransferListener transferListener = new Debug(); @Inject private ArtifactFactory artifactFactory;Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 12.9K bytes - Click Count (0) -
docs_src/additional_responses/tutorial002_py39.py
from typing import Union from fastapi import FastAPI from fastapi.responses import FileResponse from pydantic import BaseModel class Item(BaseModel): id: str value: str app = FastAPI() @app.get( "/items/{item_id}", response_model=Item, responses={ 200: { "content": {"image/png": {}}, "description": "Return the JSON item or an image.", } },
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 628 bytes - Click Count (0)