- Sort Score
- Result 10 results
- Languages All
Results 2041 - 2050 of 2,957 for name4 (0.03 sec)
-
docs_src/body_multiple_params/tutorial001_an.py
from typing import Union from fastapi import FastAPI, Path from pydantic import BaseModel from typing_extensions import Annotated app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None @app.put("/items/{item_id}") async def update_item( item_id: Annotated[int, Path(title="The ID of the item to get", ge=0, le=1000)],
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 639 bytes - Viewed (0) -
docs/zh/docs/tutorial/dependencies/classes-as-dependencies.md
something(some_argument, some_keyword_argument="foo") ``` 这就是 "可调用对象"。 ## 类作为依赖项 您可能会注意到,要创建一个 Python 类的实例,您可以使用相同的语法。 举个例子: ```Python class Cat: def __init__(self, name: str): self.name = name fluffy = Cat(name="Mr Fluffy") ``` 在这个例子中, `fluffy` 是一个 `Cat` 类的实例。 为了创建 `fluffy`,你调用了 `Cat` 。 所以,Python 类也是 **可调用对象**。 因此,在 **FastAPI** 中,你可以使用一个 Python 类作为一个依赖项。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.4K bytes - Viewed (0) -
.github/ISSUE_TEMPLATE/enhancement.yaml
name: Enhancement Tracking Issue description: Provide supporting details for a feature in development labels: kind/feature body: - type: textarea id: feature attributes: label: What would you like to be added? description: | Feature requests are unlikely to make progress as issues. Please consider engaging with SIGs on slack and mailing lists, instead.
Registered: Fri Nov 01 09:05:11 UTC 2024 - Last Modified: Tue Oct 05 16:55:38 UTC 2021 - 750 bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008b_an_py39.py
import pytest from fastapi.testclient import TestClient from ...utils import needs_py39 @pytest.fixture(name="client") def get_client(): from docs_src.dependencies.tutorial008b_an_py39 import app client = TestClient(app) return client @needs_py39 def test_get_no_item(client: TestClient): response = client.get("/items/foo") assert response.status_code == 404, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 918 bytes - Viewed (0) -
src/Make.dist
# Copyright 2012 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Run go tool dist to install a command. # The -v causes dist to print the name of each directory as it runs. # The -vv causes dist to print each build command as it runs. # go tool dist clean cleans all directories, not just this one, # but it's as close as we can get. # Default target (first).
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Feb 08 20:26:47 UTC 2012 - 553 bytes - Viewed (0) -
.teamcity/src/main/kotlin/configurations/BuildDistributions.kt
import model.CIBuildModel import model.Stage class BuildDistributions(model: CIBuildModel, stage: Stage) : OsAwareBaseGradleBuildType(os = LINUX, stage = stage, init = { id("${model.projectId}_BuildDistributions") name = "Build Distributions" description = "Creation and verification of the distribution and documentation" applyDefaults( model, this, "packageBuild", extraParameters =
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Sep 24 06:22:49 UTC 2024 - 1.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/pager/FileConfigPager.java
private boolean existNextPage; private List<Integer> pageNumberList; private int pageSize; private int currentPageNumber; public String id; public String name; public String paths; public String numOfThread; public String intervalTime; public String boost; public String available; public String sortOrder;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/LabelTypeService.java
} } protected void setupListCondition(final LabelTypeCB cb, final LabelTypePager labelTypePager) { if (StringUtil.isNotBlank(labelTypePager.name)) { cb.query().setName_Wildcard(wrapQuery(labelTypePager.name)); } if (StringUtil.isNotBlank(labelTypePager.value)) { cb.query().setValue_Wildcard(wrapQuery(labelTypePager.value)); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcBinding.java
INTERFACES.put("samr", samr.getSyntax()); INTERFACES.put("netdfs", netdfs.getSyntax()); } public static void addInterface(String name, String syntax) { INTERFACES.put(name, syntax); } String proto; String server; String endpoint = null; HashMap options = null; UUID uuid = null; int major; int minor;
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 3.2K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/OperatingSystemProfileActivator.java
if (reverse) { return !result; } else { return result; } } private boolean determineNameMatch(String name) { String test = name; boolean reverse = false; if (test.startsWith("!")) { reverse = true; test = test.substring(1); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.7K bytes - Viewed (0)