- Sort Score
- Result 10 results
- Languages All
Results 411 - 420 of 1,383 for Items (0.02 sec)
-
docs_src/python_types/tutorial006.py
from typing import List def process_items(items: List[str]): for item in items:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 106 bytes - Viewed (0) -
tests/test_tutorial/test_websockets/test_tutorial002.py
with client.websocket_connect("/items/foo/ws"): pytest.fail( "did not raise WebSocketDisconnect on __enter__" ) # pragma: no cover def test_websocket_invalid_data(): client = TestClient(app) with pytest.raises(WebSocketDisconnect): with client.websocket_connect("/items/foo/ws?q=bar&token=some-token"): pytest.fail(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Nov 13 14:26:09 UTC 2022 - 3.6K bytes - Viewed (0) -
docs_src/response_model/tutorial001_01.py
class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None tags: List[str] = [] @app.post("/items/") async def create_item(item: Item) -> Item: return item @app.get("/items/") async def read_items() -> List[Item]: return [ Item(name="Portal Gun", price=42.0), Item(name="Plumbus", price=32.0),
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Jan 07 13:45:48 UTC 2023 - 513 bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_an_py310.py
assert response.json() == {"detail": "Inactive user"} @needs_py310 def test_read_items(client: TestClient): access_token = get_access_token(scope="me items", client=client) response = client.get( "/users/me/items/", headers={"Authorization": f"Bearer {access_token}"} ) assert response.status_code == 200, response.text assert response.json() == [{"item_id": "Foo", "owner": "johndoe"}]
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LayeredOptions.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.5K bytes - Viewed (0) -
.teamcity/src/test/kotlin/CIConfigIntegrationTests.kt
private fun BaseGradleBuildType.getGradleTasks(): String { val runnerStep = this.steps.items.find { it.name == "GRADLE_RUNNER" } as GradleBuildStep return runnerStep.tasks!! } private fun BaseGradleBuildType.getGradleParams(): String { val runnerStep = this.steps.items.find { it.name == "GRADLE_RUNNER" } as GradleBuildStep return runnerStep.gradleParams!! } @Test
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Jul 18 07:02:47 UTC 2024 - 13.4K bytes - Viewed (0) -
istioctl/pkg/completion/completion.go
podList, err := client.Kube().CoreV1().Pods(ns).List(context.Background(), metav1.ListOptions{}) if err != nil { return nil, err } var podsName []string for _, pod := range podList.Items { if toComplete == "" || strings.HasPrefix(pod.Name, toComplete) { podsName = append(podsName, pod.Name) } } return podsName, nil }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 4.9K bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial004.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.2K bytes - Viewed (0) -
docs_src/sql_databases_peewee/sql_app/main.py
@app.post( "/users/{user_id}/items/", response_model=schemas.Item, dependencies=[Depends(get_db)], ) def create_item_for_user(user_id: int, item: schemas.ItemCreate): return crud.create_user_item(item=item, user_id=user_id) @app.get("/items/", response_model=List[schemas.Item], dependencies=[Depends(get_db)]) def read_items(skip: int = 0, limit: int = 100): items = crud.get_items(skip=skip, limit=limit)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 2.2K bytes - Viewed (0) -
tensorflow/c/c_api_experimental.cc
TF_ShapeAndType& shape_and_type = shape_list->items[index]; shape_and_type.dtype = dtype; } void TF_DeleteShapeAndTypeList(TF_ShapeAndTypeList* shape_list) { if (shape_list == nullptr) return; for (size_t i = 0; i < shape_list->num_items; ++i) { delete[] shape_list->items[i].dims; } delete[] shape_list->items; delete shape_list; }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 29.5K bytes - Viewed (0)