- Sort Score
- Result 10 results
- Languages All
Results 781 - 790 of 4,225 for None (0.04 sec)
-
ci/official/utilities/repack_libtensorflow.sh
# simple way to parameterize this from bazel, hence this helper to # "normalize" the srcjar layout. # # Arguments: # src_jar - path to the original srcjar # dest_jar - path to the destination # Returns: # None function cp_normalized_srcjar() { src_jar="$1" dest_jar="$2" tmp_dir=$(mktemp -d) cp "${src_jar}" "${tmp_dir}/orig.jar" pushd "${tmp_dir}" # Extract any src/ files jar -xf "${tmp_dir}/orig.jar" src/
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Jul 12 19:47:53 UTC 2023 - 2.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/body-multiple-params.md
# 请求体 - 多个参数 既然我们已经知道了如何使用 `Path` 和 `Query`,下面让我们来了解一下请求体声明的更高级用法。 ## 混合使用 `Path`、`Query` 和请求体参数 首先,毫无疑问地,你可以随意地混合使用 `Path`、`Query` 和请求体参数声明,**FastAPI** 会知道该如何处理。 你还可以通过将默认值设置为 `None` 来将请求体参数声明为可选参数: //// tab | Python 3.10+ ```Python hl_lines="18-20" {!> ../../docs_src/body_multiple_params/tutorial001_an_py310.py!} ``` //// //// tab | Python 3.9+ ```Python hl_lines="18-20"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.5K bytes - Viewed (0) -
docs/ja/docs/tutorial/body-multiple-params.md
まず、もちろん、`Path`と`Query`とリクエストボディのパラメータの宣言は自由に混ぜることができ、 **FastAPI** は何をするべきかを知っています。 また、デフォルトの`None`を設定することで、ボディパラメータをオプションとして宣言することもできます: ```Python hl_lines="19 20 21" {!../../docs_src/body_multiple_params/tutorial001.py!} ``` /// note | "備考" この場合、ボディから取得する`item`はオプションであることに注意してください。デフォルト値は`None`です。 /// ## 複数のボディパラメータ 上述の例では、*path operations*は`item`の属性を持つ以下のようなJSONボディを期待していました: ```JSON
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.8K bytes - Viewed (0) -
docs/ja/docs/tutorial/query-params.md
``` 関数内のパラメータの値は以下の様になります: * `skip=20`: URL内にセットしたため * `limit=10`: デフォルト値 ## オプショナルなパラメータ 同様に、デフォルト値を `None` とすることで、オプショナルなクエリパラメータを宣言できます: ```Python hl_lines="9" {!../../docs_src/query_params/tutorial002.py!} ``` この場合、関数パラメータ `q` はオプショナルとなり、デフォルトでは `None` になります。 /// check | "確認" パスパラメータ `item_id` はパスパラメータであり、`q` はそれとは違ってクエリパラメータであると判別できるほど**FastAPI** が賢いということにも注意してください。 ///
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.5K bytes - Viewed (0) -
tests/test_security_http_digest_optional.py
app = FastAPI() security = HTTPDigest(auto_error=False) @app.get("/users/me") def read_current_user( credentials: Optional[HTTPAuthorizationCredentials] = Security(security), ): if credentials is None: return {"msg": "Create an account first"} return {"scheme": credentials.scheme, "credentials": credentials.credentials} client = TestClient(app) def test_security_http_digest():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.2K bytes - Viewed (0) -
tests/test_security_http_bearer_optional.py
app = FastAPI() security = HTTPBearer(auto_error=False) @app.get("/users/me") def read_current_user( credentials: Optional[HTTPAuthorizationCredentials] = Security(security), ): if credentials is None: return {"msg": "Create an account first"} return {"scheme": credentials.scheme, "credentials": credentials.credentials} client = TestClient(app) def test_security_http_bearer():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.1K bytes - Viewed (0) -
tests/test_security_oauth2_password_bearer_optional.py
app = FastAPI() oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/token", auto_error=False) @app.get("/items/") async def read_items(token: Optional[str] = Security(oauth2_scheme)): if token is None: return {"msg": "Create an account first"} return {"token": token} client = TestClient(app) def test_no_token(): response = client.get("/items")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.1K bytes - Viewed (0) -
common-protos/k8s.io/api/admissionregistration/v1/generated.proto
// IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation // if the object being admitted is modified by other admission plugins after the initial webhook call. // Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. // Note: // * the number of additional invocations is not guaranteed to be exactly one.
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 24.4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/ExecutionEvent.java
*/ MojoExecution getMojoExecution(); /** * Gets the exception that caused the event (if any). * * @return The exception or {@code null} if none. */ Exception getException();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.3K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/JavaPathType.java
} /** * The {@code javax.tool} enumeration value corresponding to this {@code JavaPathType}, or {@code null} if none. * * @see #location() */ private final JavaFileManager.Location location; /** * The tools option for this path, or {@code null} if none. * * @see #option() */ private final String option; /**
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Mon May 13 09:53:45 UTC 2024 - 15K bytes - Viewed (0)