Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 341 - 350 of 1,014 for dass (0.02 seconds)

  1. tests/test_depends_hashable.py

    # as other tools that use them depend on that
    # Ref: https://github.com/fastapi/fastapi/pull/14320
    
    from fastapi import Depends, Security
    
    
    def dep():
        pass
    
    
    def test_depends_hashable():
        dep()  # just for coverage
        d1 = Depends(dep)
        d2 = Depends(dep)
        d3 = Depends(dep, scope="function")
        d4 = Depends(dep, scope="function")
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Nov 19 16:50:18 GMT 2025
    - 596 bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/llm/RelevanceEvaluationResultTest.java

            List<String> docIds = Arrays.asList("doc-with-dash", "doc_with_underscore", "doc.with.dot");
            List<Integer> indexes = Arrays.asList(1, 2, 3);
            RelevanceEvaluationResult result = RelevanceEvaluationResult.withRelevantDocs(docIds, indexes);
    
            assertTrue(result.isHasRelevantResults());
            assertEquals("doc-with-dash", result.getRelevantDocIds().get(0));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 01 08:11:18 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  3. docs_src/dependencies/tutorial008b_an_py310.py

    
    data = {
        "plumbus": {"description": "Freshly pickled plumbus", "owner": "Morty"},
        "portal-gun": {"description": "Gun to create portals", "owner": "Rick"},
    }
    
    
    class OwnerError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except OwnerError as e:
            raise HTTPException(status_code=400, detail=f"Owner error: {e}")
    
    
    @app.get("/items/{item_id}")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 775 bytes
    - Click Count (0)
  4. tests/test_openapi_model_description_trim_on_formfeed.py

    class MyModel(BaseModel):
        """
        A model with a form feed character in the title.
        \f
        Text after form feed character.
        """
    
    
    @app.get("/foo")
    def foo(v: MyModel):  # pragma: no cover
        pass
    
    
    client = TestClient(app)
    
    
    def test_openapi():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        openapi_schema = response.json()
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Jun 17 07:46:27 GMT 2025
    - 660 bytes
    - Click Count (0)
  5. docs_src/dependencies/tutorial008d_py310.py

    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: str = Depends(get_username)):
        if item_id == "portal-gun":
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 694 bytes
    - Click Count (0)
  6. docs_src/dependencies/tutorial008d_an_py310.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)]):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 734 bytes
    - Click Count (0)
  7. cmd/object-api-getobjectinfo_test.go

    	}
    	testCases := []struct {
    		bucketName string
    		objectName string
    
    		// Expected output of GetObjectInfo.
    		result ObjectInfo
    		err    error
    		// Flag indicating whether the test is expected to pass or not.
    		shouldPass bool
    	}{
    		// Test cases with invalid bucket names ( Test number 1-4 ).
    		{".test", "", ObjectInfo{}, BucketNameInvalid{Bucket: ".test"}, false},
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 5.6K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/RequestParamTest.java

            }
        }
    
        // Interaction: Demonstrate no external interactions occur (no collaborators to call)
        // We use Mockito in a minimal, meaningful way: pass the enum to a mocked consumer and verify interaction.
        interface EnumConsumer {
            void accept(RequestParam rp);
        }
    
        @Mock
        EnumConsumer consumer;
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  9. api/maven-api-plugin/src/main/mdo/lifecycle.mdo

              </association>
            </field>
            <field>
              <name>configuration</name>
              <version>1.0.0+</version>
              <type>DOM</type>
              <description>Configuration to pass to all goals run in this phase.</description>
            </field>
          </fields>
          <codeSegments>
            <codeSegment>
              <version>2.0.0+</version>
              <code><![CDATA[
        /**
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sun May 18 09:15:56 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  10. architecture/standards/README.md

    For now we just have this global repository of ADRs.
    If we see fit, we can break these out to per-platform ones, or keep a hybrid approach to having global and platform-specific ADSs.
    
    Our aim is to keep the process lightweight and approachable.
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Feb 21 06:30:44 GMT 2024
    - 546 bytes
    - Click Count (0)
Back to Top