- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,291 for enum1 (0.11 sec)
-
subprojects/core-api/src/test/groovy/org/gradle/model/internal/core/ModelTypeTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 11 21:42:04 UTC 2018 - 22.3K bytes - Viewed (0) -
docs/en/docs/tutorial/path-operation-configuration.md
<img src="/img/tutorial/path-operation-configuration/image01.png"> ### Tags with Enums If you have a big application, you might end up accumulating **several tags**, and you would want to make sure you always use the **same tag** for related *path operations*. In these cases, it could make sense to store the tags in an `Enum`. **FastAPI** supports that the same way as with plain strings:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Oct 17 05:59:11 UTC 2023 - 5.5K bytes - Viewed (0) -
docs/ko/docs/tutorial/path-params.md
## 사전정의 값 만약 *경로 매개변수*를 받는 *경로 작동*이 있지만, *경로 매개변수*로 가능한 값들을 미리 정의하고 싶다면 파이썬 표준 <abbr title="열거형(Enumeration)">`Enum`</abbr>을 사용할 수 있습니다. ### `Enum` 클래스 생성 `Enum`을 임포트하고 `str`과 `Enum`을 상속하는 서브 클래스를 만듭니다. `str`을 상속함으로써 API 문서는 값이 `string` 형이어야 하는 것을 알게 되고 이는 문서에 제대로 표시됩니다. 가능한 값들에 해당하는 고정된 값의 클래스 어트리뷰트들을 만듭니다: ```Python hl_lines="1 6-9"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Mar 22 01:42:11 UTC 2024 - 9.8K bytes - Viewed (0) -
docs/pt/docs/tutorial/path-operation-configuration.md
<img src="/img/tutorial/path-operation-configuration/image01.png"> ### Tags com Enums Se você tem uma grande aplicação, você pode acabar acumulando **várias tags**, e você gostaria de ter certeza de que você sempre usa a **mesma tag** para *operações de rota* relacionadas. Nestes casos, pode fazer sentido armazenar as tags em um `Enum`. **FastAPI** suporta isso da mesma maneira que com strings simples:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Oct 17 05:59:11 UTC 2023 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/test_schema.fbs
file_identifier "TFL3"; // File extension of any written files. file_extension "tflite"; // IMPORTANT: All new members of tables, enums and unions must be added at the // end to ensure backwards compatibility. // The type of data stored in a tensor. enum TensorType : byte { FLOAT32 = 0, FLOAT16 = 1, INT32 = 2, UINT8 = 3, INT64 = 4, STRING = 5, BOOL = 6, INT16 = 7,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 19 19:46:06 UTC 2021 - 26.1K bytes - Viewed (0) -
src/runtime/proc_runtime_test.go
} for co := 0; co < len(ord.coprimes); co++ { enum := ord.start(uint32(co)) checked := make([]bool, procs) for p := 0; p < procs; p++ { x := enum.position() if checked[x] { println("procs:", procs, "inc:", enum.inc) panic("duplicate during enumeration") } checked[x] = true enum.next() } if !enum.done() { panic("not done") } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 18:43:08 UTC 2022 - 1.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java
wildcardBoundUsesImplicitlyRecursiveBoundedWildcard(UseList<? extends List<Enum<?>>> arg) { return isSubtype(arg); } @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true) public UseList<? extends List<Enum<? extends Enum<?>>>> wildcardBoundHasImplicitBoundAtsInvariantPosition(UseList<? extends List<Enum<?>>> arg) { return isSubtype(arg);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 20.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ArrayOfPrimitiveValueSnapshot.java
/** * The primitive array type. * <br> * <b>IMPORTANT: the order in which the enums are defined here matters and should be considered part of the * cross-version protocol since the {@link Enum#ordinal()} is part of the * {@link #getPrimitiveTypeCode() serialized state}.</b> */ private enum PrimitiveType { B(byte[].class) { @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 14.8K bytes - Viewed (0) -
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"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Mar 22 01:42:11 UTC 2024 - 10.6K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/IsolatedEnumValueSnapshot.java
import javax.annotation.Nullable; /** * Isolates an Enum value and is a snapshot for that value. */ public class IsolatedEnumValueSnapshot extends EnumValueSnapshot implements Isolatable<Enum<?>> { private final Enum<?> value; public IsolatedEnumValueSnapshot(Enum<?> value) { super(value); this.value = value; } public Enum<?> getValue() { return value; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 08 14:30:43 UTC 2024 - 1.7K bytes - Viewed (0)