Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 641 for SELF (0.1 sec)

  1. fastapi/security/http.py

                    """
                ),
            ] = True,
        ):
            self.model = HTTPBaseModel(scheme="basic", description=description)
            self.scheme_name = scheme_name or self.__class__.__name__
            self.realm = realm
            self.auto_error = auto_error
    
        async def __call__(  # type: ignore
            self, request: Request
        ) -> Optional[HTTPBasicCredentials]:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Apr 19 15:29:38 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/internal/classpath/declarations/KotlinStdlibFileInterceptors.java

        public static byte[] intercept_readBytes(
            File self,
            @CallerClassName String consumer
        ) {
            Instrumented.fileOpened(self, consumer);
            return FilesKt.readBytes(self);
        }
    
        @InterceptCalls
        @StaticMethod(ofClass = FilesKt.class)
        public static void intercept_forEachBlock(
            File self,
            Function2<?, ?, ?> action,
            @CallerClassName String consumer
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 12:34:20 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/basic.py

    # CHECK-SAME: tf.versions
    # CHECK-SAME: bad_consumers
    # CHECK-SAME: min_consumer
    # CHECK-SAME: producer
    
    
    class TestModule(tf.Module):
    
      def __init__(self):
        super(TestModule, self).__init__()
        self.v42 = tf.Variable(42.0)
        self.c43 = tf.constant(43.0)
    
      # During serialization, the constants are given internal (non-user-accessible, non-semantically-load-bearing) exported names.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:49:35 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. docs_src/dependencies/tutorial002_an_py310.py

    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: Annotated[CommonQueryParams, Depends(CommonQueryParams)]):
        response = {}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 664 bytes
    - Viewed (0)
  5. docs_src/dependencies/tutorial002_an.py

    app = FastAPI()
    
    
    fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}]
    
    
    class CommonQueryParams:
        def __init__(self, q: Union[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: Annotated[CommonQueryParams, Depends(CommonQueryParams)]):
        response = {}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 706 bytes
    - Viewed (0)
  6. samples/bookinfo/src/productpage/tests/unit/test_productpage.py

    import unittest
    
    import requests_mock
    
    import productpage
    
    
    class ApplianceTest(unittest.TestCase):
    
        def setUp(self):
            self.app = productpage.app.test_client()
    
        @requests_mock.Mocker()
        def test_header_propagation_reviews(self, m):
            """ Check that tracing headers are forwarded correctly """
            product_id = 0
            # Register expected headers with the mock. If the headers
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 23:56:37 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. tests/test_custom_middleware_exception.py

                    )
                return message
    
            return inner
    
        async def __call__(self, scope, receive, send):
            if scope["type"] != "http" or self.max_content_size is None:
                await self.app(scope, receive, send)
                return
    
            wrapper = self.receive_wrapper(receive)
            await self.app(scope, wrapper, send)
    
    
    @router.post("/middleware")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Aug 25 21:44:40 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  8. fastapi/params.py

    class Depends:
        def __init__(
            self, dependency: Optional[Callable[..., Any]] = None, *, use_cache: bool = True
        ):
            self.dependency = dependency
            self.use_cache = use_cache
    
        def __repr__(self) -> str:
            attr = getattr(self.dependency, "__name__", type(self.dependency).__name__)
            cache = "" if self.use_cache else ", use_cache=False"
            return f"{self.__class__.__name__}({attr}{cache})"
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  9. fastapi/security/open_id_connect_url.py

                    """
                ),
            ] = True,
        ):
            self.model = OpenIdConnectModel(
                openIdConnectUrl=openIdConnectUrl, description=description
            )
            self.scheme_name = scheme_name or self.__class__.__name__
            self.auto_error = auto_error
    
        async def __call__(self, request: Request) -> Optional[str]:
            authorization = request.headers.get("Authorization")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. tests/test_inherited_custom_class.py

    from .utils import needs_pydanticv1, needs_pydanticv2
    
    
    class MyUuid:
        def __init__(self, uuid_string: str):
            self.uuid = uuid_string
    
        def __str__(self):
            return self.uuid
    
        @property  # type: ignore
        def __class__(self):
            return uuid.UUID
    
        @property
        def __dict__(self):
            """Spoof a missing __dict__ by raising TypeError, this is how
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top