- Sort Score
- Num 10 results
- Language All
Results 151 - 160 of 880 for def2 (0.03 seconds)
-
build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/test/rest/YamlRestCompatTestPluginFuncTest.groovy
def compatibleVersion = Version.fromString(VersionProperties.getVersions().get("elasticsearch")).getMajor() - 1 def specIntermediateDir = "restResources/v${compatibleVersion}/yamlSpecs" def testIntermediateDir = "restResources/v${compatibleVersion}/yamlTests" def transformTask = ":yamlRestTestV${compatibleVersion}CompatTransform" def YAML_FACTORY = new YAMLFactory()Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Thu Sep 30 16:30:48 GMT 2021 - 16.4K bytes - Click Count (0) -
tests/test_tutorial/test_body/test_tutorial001.py
@pytest.fixture( name="client", params=[ pytest.param("tutorial001_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.body.{request.param}") client = TestClient(mod.app) return client def test_body_float(client: TestClient): response = client.post("/items/", json={"name": "Foo", "price": 50.5})
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Feb 23 17:45:20 GMT 2026 - 11.1K bytes - Click Count (0) -
tests/test_security_api_key_cookie_optional.py
api_key = APIKeyCookie(name="key", auto_error=False) class User(BaseModel): username: str def get_current_user(oauth_header: str | None = Security(api_key)): if oauth_header is None: return None user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: User = Depends(get_current_user)): if current_user is None:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.2K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/UserGuideTransformTask.groovy
} provider.write(destFile.get().asFile) } def addVersionInfo(Document doc) { Element releaseInfo = doc.createElement('releaseinfo') releaseInfo.appendChild(doc.createTextNode(version.get().toString())) doc.documentElement.bookinfo[0]?.appendChild(releaseInfo) } def fixProgramListings(Document doc) {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri May 16 07:58:02 GMT 2025 - 5.6K bytes - Click Count (0) -
scripts/doc_parsing_utils.py
) ) return links def _add_lang_code_to_url(url: str, lang_code: str) -> str: if url.startswith(TIANGOLO_COM): rel_url = url[len(TIANGOLO_COM) :] if not rel_url.startswith(ASSETS_URL_PREFIXES): url = url.replace(TIANGOLO_COM, f"{TIANGOLO_COM}/{lang_code}") return url def _construct_markdown_link( url: str, text: str,Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:37:41 GMT 2026 - 23.5K bytes - Click Count (0) -
tests/test_security_openid_connect.py
class User(BaseModel): username: str def get_current_user(oauth_header: str = Security(oid)): user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: User = Depends(get_current_user)): return current_user client = TestClient(app) def test_security_oauth2():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 2.5K bytes - Click Count (0) -
tests/test_security_openid_connect_description.py
) class User(BaseModel): username: str def get_current_user(oauth_header: str = Security(oid)): user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: User = Depends(get_current_user)): return current_user client = TestClient(app) def test_security_oauth2():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 2.6K bytes - Click Count (0) -
fastapi/_compat/v2.py
@property def alias(self) -> str: a = self.field_info.alias return a if a is not None else self.name @property def validation_alias(self) -> str | None: va = self.field_info.validation_alias if isinstance(va, str) and va: return va return None @property def serialization_alias(self) -> str | None:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 16.7K bytes - Click Count (0) -
docs/sts/client_grants/__init__.py
metadata=fetcher(), refresh_using=fetcher, method=self.METHOD, ) else: return None def _create_credentials_fetcher(self): method = self.METHOD def fetch_credentials(): # HTTP headers are case insensitive filter out # all duplicate headers and pick one. headers = {}Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 4.6K bytes - Click Count (0) -
src/main/java/jcifs/Config.java
* @param key the property key to look up * @param def the default value to return if key is not found or cannot be parsed * @return the integer value of the property or the default value */ public static int getInt(final Properties props, final String key, int def) { final String s = props.getProperty(key); if (s != null) { try { def = Integer.parseInt(s);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.1K bytes - Click Count (0)