- Sort Score
- Num 10 results
- Language All
Results 1291 - 1300 of 2,978 for Class (0.02 seconds)
-
docs_src/body_fields/tutorial001_py310.py
from fastapi import Body, FastAPI from pydantic import BaseModel, Field app = FastAPI() class Item(BaseModel): name: str description: str | None = Field( default=None, title="The description of the item", max_length=300 ) price: float = Field(gt=0, description="The price must be greater than zero") tax: float | None = None @app.put("/items/{item_id}")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 523 bytes - Click Count (0) -
docs_src/response_model/tutorial001_py39.py
from typing import Any, Union from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None tags: list[str] = [] @app.post("/items/", response_model=Item) async def create_item(item: Item) -> Any: return item @app.get("/items/", response_model=list[Item])
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Jan 07 13:45:48 GMT 2023 - 556 bytes - Click Count (0) -
docs_src/handling_errors/tutorial003_py39.py
from fastapi import FastAPI, Request from fastapi.responses import JSONResponse class UnicornException(Exception): def __init__(self, name: str): self.name = name app = FastAPI() @app.exception_handler(UnicornException) async def unicorn_exception_handler(request: Request, exc: UnicornException): return JSONResponse( status_code=418,
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 626 bytes - Click Count (0) -
.teamcity/src/main/kotlin/projects/FunctionalTestProject.kt
import model.Stage import model.TestCoverage const val DEFAULT_FUNCTIONAL_TEST_BUCKET_SIZE = 50 const val DEFAULT_LINUX_FUNCTIONAL_TEST_BUCKET_SIZE = 20 const val DEFAULT_MACOS_FUNCTIONAL_TEST_BUCKET_SIZE = 20 class FunctionalTestProject( val model: CIBuildModel, functionalTestBucketProvider: FunctionalTestBucketProvider, val testCoverage: TestCoverage, val stage: Stage, ) : Project({
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Feb 12 09:12:03 GMT 2025 - 876 bytes - Click Count (0) -
tensorflow/c/eager/abstract_context.h
// Release any underlying resources, including the interface object. // // WARNING: The destructor of this class is marked as protected to disallow // clients from directly destroying this object since it may manage its own // lifetime through ref counting. Thus clients MUST call Release() in order to // destroy an instance of this class. virtual void Release() = 0; // Creates an operation builder and ties it to this context.
Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/eventspy/AbstractEventSpy.java
* under the License. */ package org.apache.maven.eventspy; /** * A skeleton eventspy that does nothing other than helping implementors. * @since 3.0.2 */ public abstract class AbstractEventSpy implements EventSpy { @Override public void init(Context context) throws Exception {} @Override public void onEvent(Object event) throws Exception {} @OverrideCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 1.2K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/IntrospectionException.java
* under the License. */ package org.apache.maven.model.interpolation.reflection; /** * @deprecated use {@code org.apache.maven.api.services.ModelBuilder} instead */ @Deprecated(since = "4.0.0") public class IntrospectionException extends Exception { /** * */ private static final long serialVersionUID = -6090771282553728784L; IntrospectionException(String message) { super(message);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 1.3K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/TransportProviderException.java
package org.apache.maven.api.services; import org.apache.maven.api.annotations.Consumer; import org.apache.maven.api.annotations.Experimental; /** * @since 4.0.0 */ @Experimental @Consumer public class TransportProviderException extends MavenException { public TransportProviderException(String message, Throwable cause) { super(message, cause); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Sep 25 21:57:56 GMT 2025 - 1.2K bytes - Click Count (0) -
tests/test_security_api_key_cookie.py
from fastapi import Depends, FastAPI, Security from fastapi.security import APIKeyCookie from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() api_key = APIKeyCookie(name="key") class User(BaseModel): username: str def get_current_user(oauth_header: str = Security(api_key)): user = User(username=oauth_header) return user @app.get("/users/me")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 24 19:03:06 GMT 2025 - 2K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/filters/KotlinInternalFilter.groovy
import japicmp.filter.ClassFilter import japicmp.filter.FieldFilter import javassist.CtBehavior import javassist.CtClass import javassist.CtField /** * Matches Kotlin <code>internal</code> members. */ class KotlinInternalFilter implements ClassFilter, FieldFilter, BehaviorFilter { @Override boolean matches(CtClass ctClass) { return KotlinMetadataQueries.INSTANCE.isKotlinInternal(ctClass) }
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 1.4K bytes - Click Count (0)