Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 855 for SELF (0.27 sec)

  1. docs_src/dependencies/tutorial004_an_py39.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()]):
        response = {}
        if commons.q:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 660 bytes
    - Viewed (0)
  2. docs_src/dependencies/tutorial003_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[Any, Depends(CommonQueryParams)]):
        response = {}
        if commons.q:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 697 bytes
    - Viewed (0)
  3. docs_src/dependencies/tutorial004_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()]):
        response = {}
        if commons.q:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 689 bytes
    - Viewed (0)
  4. tests/test_dependency_class.py

    class CallableDependency:
        def __call__(self, value: str) -> str:
            return value
    
    
    class CallableGenDependency:
        def __call__(self, value: str) -> Generator[str, None, None]:
            yield value
    
    
    class AsyncCallableDependency:
        async def __call__(self, value: str) -> str:
            return value
    
    
    class AsyncCallableGenDependency:
        async def __call__(self, value: str) -> AsyncGenerator[str, None]:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Aug 09 10:54:05 UTC 2020
    - 3.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/pywrap_quantize_model_test.py

      def test_quantize_model_fails_when_invalid_quant_options_serialization(self):
        src_saved_model_path = self.create_tempdir().full_path
        dst_saved_model_path = self.create_tempdir().full_path
        signature_def_keys = ['serving_default']
        quant_opts_serialized = 'invalid proto serialization string'.encode('utf-8')
    
        with self.assertRaisesRegex(TypeError, 'incompatible function arguments'):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 05 02:09:24 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. tests/test_jsonable_encoder.py

    
    class Person:
        def __init__(self, name: str):
            self.name = name
    
    
    class Pet:
        def __init__(self, owner: Person, name: str):
            self.owner = owner
            self.name = name
    
    
    @dataclass
    class Item:
        name: str
        count: int
    
    
    class DictablePerson(Person):
        def __iter__(self):
            return ((k, v) for k, v in self.__dict__.items())
    
    
    class DictablePet(Pet):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/python/composite.py

      # are not positional.
      def __init__(self,
                   op_name,
                   inputs=None,
                   attrs=None,
                   derived_attrs=None,
                   outputs=None):
        self._op_name = op_name
        self._inputs = inputs
        self._attrs = attrs
        self._derived_attrs = derived_attrs
        self._outputs = outputs
    
      def __call__(self, compose_fn):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  8. tensorflow/cc/experimental/libtf/mlir/mlir_transform.cc

      auto get_string = [](Object self) {
        auto ref = self.Get<internal::Capsule>(String("_module"))
                       ->cast<mlir::OwningOpRef<mlir::ModuleOp>*>();
        return String(tensorflow::MlirModuleToString(ref->get(), false).c_str());
      };
      obj.Set(String("ToString"), Callable(TFLIB_CALLABLE_ADAPTOR(get_string)));
    
      return obj;
    }
    
    None SaveModule(Object self, Object module, String directory) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jul 12 16:28:19 UTC 2022
    - 3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/testdata/i22558.go

    import (
    	"fmt"
    	"os"
    )
    
    type big struct {
    	pile [768]int8
    }
    
    type thing struct {
    	name  string
    	next  *thing
    	self  *thing
    	stuff []big
    }
    
    func test(t *thing, u *thing) {
    	if t.next != nil {
    		return
    	}
    	fmt.Fprintf(os.Stderr, "%s\n", t.name)
    	u.self = u
    	t.self = t
    	t.next = u
    	for _, p := range t.stuff {
    		if isFoo(t, p) {
    			return
    		}
    	}
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 23 18:05:07 UTC 2018
    - 773 bytes
    - Viewed (0)
  10. fastapi/security/oauth2.py

                    auth.
                    """
                ),
            ] = None,
        ):
            self.grant_type = grant_type
            self.username = username
            self.password = password
            self.scopes = scope.split()
            self.client_id = client_id
            self.client_secret = client_secret
    
    
    class OAuth2PasswordRequestFormStrict(OAuth2PasswordRequestForm):
        """
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top