- Sort Score
- Num 10 results
- Language All
Results 261 - 270 of 758 for optimal (0.05 seconds)
-
tests/test_custom_schema_fields.py
from typing import Annotated, Optional from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel, WithJsonSchema app = FastAPI() class Item(BaseModel): name: str description: Annotated[ Optional[str], WithJsonSchema({"type": ["string", "null"]}) ] = None model_config = { "json_schema_extra": { "x-something-internal": {"level": 4},
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 1.3K bytes - Click Count (0) -
compat/maven-compat/src/test/resources/inheritance-repo/t08/p0/pom.xml
</dependency> <dependency> <groupId>maven-test</groupId> <artifactId>t08-d</artifactId> <version>1.2</version> <scope>test</scope> <optional>false</optional> </dependency> </dependencies> </dependencyManagement>Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 992 bytes - Click Count (0) -
tests/test_invalid_sequence_param.py
from typing import Optional import pytest from fastapi import FastAPI, Query from pydantic import BaseModel def test_invalid_sequence(): with pytest.raises(AssertionError): app = FastAPI() class Item(BaseModel): title: str @app.get("/items/") def read_items(q: list[Item] = Query(default=None)): pass # pragma: no cover def test_invalid_tuple():
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.2K bytes - Click Count (0) -
guava/src/com/google/common/graph/AbstractNetwork.java
return edge -> incidentNodes(edge).adjacentNode(nodePresent).equals(nodeToCheck); } @Override public Optional<E> edgeConnecting(N nodeU, N nodeV) { return Optional.ofNullable(edgeConnectingOrNull(nodeU, nodeV)); } @Override public Optional<E> edgeConnecting(EndpointPair<N> endpoints) { validateEndpoints(endpoints); return edgeConnecting(endpoints.nodeU(), endpoints.nodeV());
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 19 21:24:11 GMT 2025 - 10.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlan.java
} public Stream<BuildStep> steps(MavenProject project) { return Optional.ofNullable(plan.get(project)) .map(m -> m.values().stream()) .orElse(Stream.empty()); } public Optional<BuildStep> step(MavenProject project, String name) { return Optional.ofNullable(plan.get(project)).map(m -> m.get(name)); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Mar 28 12:11:25 GMT 2025 - 6.1K bytes - Click Count (0) -
tests/test_union_inherited_body.py
from typing import Optional, Union from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: Optional[str] = None class ExtendedItem(Item): age: int @app.post("/items/") def save_union_different_body(item: Union[ExtendedItem, Item]): return {"item": item} client = TestClient(app)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 4.6K bytes - Click Count (0) -
compat/maven-model-builder/src/site/apt/index.apt
** <(optional)> reports configuration: <<<ReportConfigurationExpander>>> ({{{./apidocs/org/apache/maven/model/plugin/ReportConfigurationExpander.html}javadoc}}), with its <<<DefaultReportConfigurationExpander>>> implementation ({{{./xref/org/apache/maven/model/plugin/DefaultReportConfigurationExpander.html}source}})
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jan 03 08:42:52 GMT 2025 - 13.2K bytes - Click Count (0) -
tests/test_security_oauth2_optional.py
def get_current_user(oauth_header: Optional[str] = Security(reusable_oauth2)): if oauth_header is None: return None user = User(username=oauth_header) return user @app.post("/login") def login(form_data: OAuth2PasswordRequestFormStrict = Depends()): return form_data @app.get("/users/me") def read_users_me(current_user: Optional[User] = Depends(get_current_user)):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 8.9K bytes - Click Count (0) -
compat/maven-compat/src/test/resources/inheritance-repo/t07/p0/p1/pom.xml
</dependency> <dependency> <groupId>maven-test</groupId> <artifactId>t07-d</artifactId> <version>1.0</version> <scope>test</scope> <optional>false</optional> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>maven-test</groupId> <artifactId>t07-a</artifactId> <version>1.0</version>Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.3K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java
} } }; Optional<Activation> root = Optional.of(activation); stk.push(new ActivationFrame("activation", root)); root.map(Activation::getFile).ifPresent(fa -> { stk.push(new ActivationFrame("file", Optional.of(fa))); stk.push(new ActivationFrame("exists", Optional.empty())); validator.accept(fa.getExists());Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 03 15:06:05 GMT 2025 - 66.8K bytes - Click Count (0)