- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 855 for SELF (0.12 sec)
-
docs_src/dependencies/tutorial011_an.py
from fastapi import Depends, FastAPI from typing_extensions import Annotated app = FastAPI() class FixedContentQueryChecker: def __init__(self, fixed_content: str): self.fixed_content = fixed_content def __call__(self, q: str = ""): if q: return self.fixed_content in q return False checker = FixedContentQueryChecker("bar") @app.get("/query-checker/")
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 554 bytes - Viewed (0) -
src/cmd/go/testdata/mod/example.com_retract_self_prerelease_v1.9.0.txt
Module example.com/retract/self/prerelease is a module that retracts its own latest version and all other release version. A pre-release version higher than the highest release version is still available, and that should be matched by @latest. -- .mod -- module example.com/retract/self/prerelease go 1.15 retract v1.0.0 // bad retract v1.9.0 // self -- .info -- {"Version":"v1.9.0"} -- p.go --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 26 21:17:01 UTC 2020 - 411 bytes - Viewed (0) -
fastapi/routing.py
self.path_regex, self.path_format, self.param_convertors = compile_path(path) self.dependant = get_dependant(path=self.path_format, call=self.endpoint) for depends in self.dependencies[::-1]: self.dependant.dependencies.insert( 0, get_parameterless_sub_dependant(depends=depends, path=self.path_format), )
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Apr 02 02:48:51 UTC 2024 - 170.1K bytes - Viewed (0) -
subprojects/core/src/testInterceptors/java/org/gradle/internal/classpath/InheritedMethodsInterceptionTestInterceptorsDeclaration.java
@InterceptCalls @InterceptInherited @CallableKind.InstanceMethod public static String intercept_sayHello(@ParameterKind.Receiver InheritedMethodTestReceiver self) { return self.sayHello() + " from: " + self.getClass().getName().replace(self.getClass().getPackage().getName() + ".", ""); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 23 08:15:56 UTC 2023 - 1.9K bytes - Viewed (0) -
docs_src/dependencies/tutorial003_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[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 - 655 bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/tests/generate_testdata.py
class DataStructureModel(module.Module): """Model used for testing data structures in the C++ API.""" def __init__(self): self.arr1 = [1.] self.const_arr = [constant_op.constant(1.)] self.var_arr = [variables.Variable(1.), variables.Variable(2.)] self.dict1 = {"a": 1.} self.var_dict = {"a": variables.Variable(1.), "b": variables.Variable(2.)} class SimpleModel(module.Module):
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 15 16:58:38 UTC 2021 - 3.3K bytes - Viewed (0) -
src/cmd/go/testdata/mod/example.com_retract_self_pseudo_v1.9.0.txt
Module example.com/retract/self/pseudo is a module that retracts its own latest version, as well as an earlier version. An unretracted pseudo-version is available. -- .mod -- module example.com/retract/self/pseudo go 1.15 retract v1.0.0-bad // bad retract v1.9.0 // self -- .info --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 26 21:17:01 UTC 2020 - 310 bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/examples/mnist/mnist_train.py
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 20 03:05:18 UTC 2021 - 6.5K bytes - Viewed (0) -
tests/test_read_with_orm_mode.py
@needs_pydanticv2 def test_read_with_orm_mode() -> None: class PersonBase(BaseModel): name: str lastname: str class Person(PersonBase): @property def full_name(self) -> str: return f"{self.name} {self.lastname}" model_config = ConfigDict(from_attributes=True) class PersonCreate(PersonBase): pass class PersonRead(PersonBase): full_name: str
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 2.4K bytes - Viewed (0) -
ci/official/wheel_test/test_import_api_packages.py
if short_package_name not in self.packages_for_skip: try: __import__(short_package_name) except ImportError: logging.exception("error importing %s", short_package_name) failed_packages.append(package_name) if failed_packages: self.fail( "Failed to import" f" {len(failed_packages)}/{len(self.api_packages_v2)} packages"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 13 15:52:07 UTC 2023 - 3.3K bytes - Viewed (0)