Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2501 - 2510 of 8,413 for Class1 (0.03 sec)

  1. docs_src/additional_responses/tutorial002_py310.py

    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.",
            }
        },
    )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 596 bytes
    - Viewed (0)
  2. docs_src/dependencies/tutorial003_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=Depends(CommonQueryParams)):
        response = {}
        if commons.q:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 603 bytes
    - Viewed (0)
  3. docs_src/path_operation_configuration/tutorial003_py39.py

    from typing import 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: set[str] = set()
    
    
    @app.post(
        "/items/",
        response_model=Item,
        summary="Create an item",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 512 bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

            // Given
            CommonServerMessageBlockResponse response1 = mock(CommonServerMessageBlockResponse.class);
            CommonServerMessageBlockResponse response2 = mock(CommonServerMessageBlockResponse.class);
            CommonServerMessageBlockResponse response3 = mock(CommonServerMessageBlockResponse.class);
    
            when(response1.getNextResponse()).thenReturn(response2);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  5. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiExtensionGeneratorFacade.kt

    //
    // Rules
    // 1. an extension should either require no type parameters, a single reifeid type parameter, at call site
    // 2. all type parameters must all be reifeid or values (TypeOf, KClass or Class)
    // 3. when overloading, prefer TypeOf over Class
    // 4. in case the policy forbids your overloads, discuss
    private
    fun kotlinExtensionFunctionsFor(type: ApiType, sinceSupplier: (String) -> String?): Sequence<KotlinExtensionFunction> =
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Mar 12 15:56:18 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java

            // When/Then - Verify the interface extends the expected interfaces
            assertTrue(CommonServerMessageBlock.class.isAssignableFrom(CommonServerMessageBlockRequest.class));
            assertTrue(jcifs.util.transport.Request.class.isAssignableFrom(CommonServerMessageBlockRequest.class));
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/PacLogonInfoTest.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    
    import jcifs.smb.SID;
    
    /**
     * Unit tests for PacLogonInfo class.
     * Tests the parsing and data extraction from PAC Logon Info structures.
     */
    class PacLogonInfoTest {
    
        private static final long TEST_FILETIME = 130640000000000000L;
        private static final String TEST_USERNAME = "testuser";
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/ClientAuthTest.kt

        assertThat(recordedEventTypes).startsWith(
          CallStart::class,
          ProxySelectStart::class,
          ProxySelectEnd::class,
          DnsStart::class,
          DnsEnd::class,
          ConnectStart::class,
          SecureConnectStart::class,
        )
        assertThat(recordedEventTypes).endsWith(CallFailed::class)
      }
    
      private fun buildClient(
        heldCertificate: HeldCertificate?,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 13K bytes
    - Viewed (0)
  9. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategyTest.java

    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.when;
    
    /**
     * Unit tests for the {@link CompatibilityFixStrategy} class.
     * Tests Maven 4 compatibility fixes including duplicate dependency and plugin handling.
     */
    @DisplayName("CompatibilityFixStrategy")
    class CompatibilityFixStrategyTest {
    
        private CompatibilityFixStrategy strategy;
    
        @BeforeEach
        void setUp() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  10. docs/en/docs/_llm-test.md

    * to handle
    
    * the model
    * the Pydantic model
    * the data model
    * the database model
    * the form model
    * the model object
    
    * the class
    * the base class
    * the parent class
    * the subclass
    * the child class
    * the sibling class
    * the class method
    
    * the header
    * the headers
    * the authorization header
    * the `Authorization` header
    * the forwarded header
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 11 14:48:47 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top