- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 107 for pnum (0.13 sec)
-
docs/ja/docs/tutorial/path-params.md
## 定義済みの値 *パスパラメータ*を受け取る *path operation* をもち、有効な*パスパラメータ*の値を事前に定義したい場合は、標準のPython <abbr title="Enumeration">`Enum`</abbr> を利用できます。 ### `Enum` クラスの作成 `Enum` をインポートし、 `str` と `Enum` を継承したサブクラスを作成します。 `str` を継承することで、APIドキュメントは値が `文字列` でなければいけないことを知り、正確にレンダリングできるようになります。 そして、固定値のクラス属性を作ります。すると、その値が使用可能な値となります: ```Python hl_lines="1 6 7 8 9"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 10.6K bytes - Viewed (0) -
docs/en/docs/tutorial/path-params.md
### Create an `Enum` class Import `Enum` and create a sub-class that inherits from `str` and from `Enum`. By inheriting from `str` the API docs will be able to know that the values must be of type `string` and will be able to render correctly.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.1K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/JsseDebugLogging.kt
package okhttp3 import java.io.Closeable import java.util.logging.Handler import java.util.logging.LogRecord object JsseDebugLogging { data class JsseDebugMessage(val message: String, val param: String?) { enum class Type { Handshake, Plaintext, Encrypted, Setup, Unknown, } val type: Type get() = when {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.8K bytes - Viewed (0) -
docs/ru/docs/tutorial/path-params.md
### Создание класса `Enum` Импортируйте `Enum` и создайте подкласс, который наследуется от `str` и `Enum`. Мы наследуемся от `str`, чтобы документация API могла понять, что значения должны быть типа `string` и отображалась правильно.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 14.1K bytes - Viewed (0) -
docs/zh/docs/tutorial/path-params.md
``` 否则,`/users/{user_id}` 将匹配 `/users/me`,FastAPI 会**认为**正在接收值为 `"me"` 的 `user_id` 参数。 ## 预设值 路径操作使用 Python 的 <abbr title="Enumeration">`Enum`</abbr> 类型接收预设的*路径参数*。 ### 创建 `Enum` 类 导入 `Enum` 并创建继承自 `str` 和 `Enum` 的子类。 通过从 `str` 继承,API 文档就能把值的类型定义为**字符串**,并且能正确渲染。 然后,创建包含固定值的类属性,这些固定值是可用的有效值: ```Python hl_lines="1 6-9" {!../../../docs_src/path_params/tutorial005.py!}
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 01 05:35:40 GMT 2024 - 7.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt
) { val builder = "http://host/".toHttpUrl().newBuilder() component[builder] = codePointString val url = builder.build() assertThat(url.host).startsWith(Punycode.PREFIX_STRING) } enum class Encoding { IDENTITY { override fun encode(codePoint: Int): String { return String(codePoint) } }, PERCENT { override fun encode(codePoint: Int): String {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 12.3K bytes - Viewed (0) -
docs/fr/docs/tutorial/path-params.md
### Création d'un `Enum` Importez `Enum` et créez une sous-classe qui hérite de `str` et `Enum`. En héritant de `str` la documentation sera capable de savoir que les valeurs doivent être de type `string` et pourra donc afficher cette `Enum` correctement.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 10K bytes - Viewed (0) -
.teamcity/src/main/kotlin/common/JvmVendor.kt
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Mon Jul 24 18:12:47 GMT 2023 - 747 bytes - Viewed (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/GradleModuleApiAttribute.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package gradlebuild.basics import org.gradle.api.attributes.Attribute enum class GradleModuleApiAttribute { API, IMPLEMENTATION; companion object { val attribute = Attribute.of(GradleModuleApiAttribute::class.java) }
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Sat Sep 30 16:17:28 GMT 2023 - 864 bytes - Viewed (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/testing/TestType.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package gradlebuild.basics.testing import org.gradle.api.tasks.testing.Test enum class TestType(val prefix: String, val executers: List<String>) { INTEGRATION("integ", listOf("embedded", "forking", "noDaemon", "parallel", "configCache", "isolatedProjects")),
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Sat Sep 30 16:17:28 GMT 2023 - 1.3K bytes - Viewed (0)