- Sort Score
- Num 10 results
- Language All
Results 191 - 200 of 237 for typeof (0.04 seconds)
-
docs/zh/docs/advanced/advanced-python-types.md
# 高级 Python 类型 { #advanced-python-types } 这里有一些在使用 Python 类型时可能有用的额外想法。 ## 使用 `Union` 或 `Optional` { #using-union-or-optional } 如果你的代码因为某些原因不能使用 `|`,例如它不是在类型注解里,而是在 `response_model=` 之类的参数中,那么你可以使用 `typing` 中的 `Union` 来代替竖线(`|`)。 例如,你可以声明某个值可以是 `str` 或 `None`: ```python from typing import Union def say_hi(name: Union[str, None]): print(f"Hi {name}!") ``` `typing` 也提供了一个声明“可能为 `None`”的快捷方式:`Optional`。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 2K bytes - Click Count (0) -
cmd/metrics-v3-types.go
} type metricValue struct { Labels map[string]string Value float64 } // MetricValues - type to set metric values retrieved while loading metrics. A // value of this type is passed to the `MetricsLoaderFn`. type MetricValues struct { values map[MetricName][]metricValue descriptors map[MetricName]MetricDescriptor } func newMetricValues(d map[MetricName]MetricDescriptor) MetricValues {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Feb 28 19:33:08 GMT 2025 - 15.6K bytes - Click Count (0) -
docs/es/docs/advanced/strict-content-type.md
# Chequeo estricto de Content-Type { #strict-content-type-checking } Por defecto, **FastAPI** usa un chequeo estricto del header `Content-Type` para request bodies JSON, esto significa que las requests JSON deben incluir un header `Content-Type` válido (p. ej. `application/json`) para que el request body se parse como JSON. ## Riesgo de CSRF { #csrf-risk }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:12:26 GMT 2026 - 3.4K bytes - Click Count (0) -
docs/ru/docs/advanced/strict-content-type.md
# Строгая проверка HTTP-заголовка Content-Type { #strict-content-type-checking } По умолчанию **FastAPI** использует строгую проверку HTTP-заголовка `Content-Type` для JSON-тел запросов. Это означает, что JSON-запросы должны включать корректный заголовок `Content-Type` (например, `application/json`), чтобы тело запроса было обработано как JSON. ## Риск CSRF { #csrf-risk }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 5.6K bytes - Click Count (0) -
cmd/setup-type.go
package cmd // SetupType - enum for setup type. type SetupType int const ( // UnknownSetupType - starts with unknown setup type. UnknownSetupType SetupType = iota // FSSetupType - FS setup type enum. FSSetupType // ErasureSDSetupType - Erasure single drive setup enum. ErasureSDSetupType // ErasureSetupType - Erasure setup type enum. ErasureSetupType
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Oct 25 00:44:15 GMT 2022 - 1.5K bytes - Click Count (0) -
tensorflow/c/eager/c_api_experimental_reader.h
// // auto* reader = TFE_MonitoringNewCounterReader("name"); // test(); // int64_t value = TFE_MonitoringReadCounter1(reader, "label-value"); // Opaque handle to a reader. typedef struct TFE_MonitoringCounterReader TFE_MonitoringCounterReader; // Returns a handle to be used for reading values from streamz counter. The // counter can have been created with any number of labels.
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Thu Nov 20 03:41:38 GMT 2025 - 2.3K bytes - Click Count (0) -
android/guava/src/com/google/common/reflect/TypeToInstanceMap.java
* type {@code Iterable<Integer>}, the map won't be able to detect and throw type error. * * <p>Like any other {@code Map<Class, Object>}, this map may contain entries for primitive types, * and a primitive type and its corresponding wrapper type may map to different values. * * @param <B> the common supertype that all entries must share; often this is simply {@link Object}Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.7K bytes - Click Count (0) -
cmd/batch-job-common-types.go
// Error implements Error interface func (b BatchJobYamlErr) Error() string { return fmt.Sprintf("%s\n Hint: error near line: %d, col: %d", b.msg, b.line, b.col) } // BatchJobKV is a key-value data type which supports wildcard matching type BatchJobKV struct { line, col int Key string `yaml:"key" json:"key"` Value string `yaml:"value" json:"value"` } var _ yaml.Unmarshaler = &BatchJobKV{}
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 7.9K bytes - Click Count (0) -
tensorflow/c/eager/c_api_unified_experimental_internal.h
// For LLVM style RTTI. static bool classof(const AbstractContext* ptr) { return ptr->getKind() == kGraph || ptr->getKind() == kMlir; } }; typedef TracingContext* (*FactoryFunction)(const char* fn_name, TF_Status*); absl::Status SetDefaultTracingEngine(const char* name); void RegisterTracingEngineFactory(const ::tensorflow::string& name,
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 5.2K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt
} } // Write the payload. sink.writeAll(content) } /** * Execute [block] with a new namespace for type hints. Type hints from the enclosing type are no * longer usable by the current type's members. */ fun <T> withTypeHint(block: () -> T): T { typeHintStack.add(null) try { return block() } finally {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 5.7K bytes - Click Count (0)