- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 156 for unionOf (0.12 seconds)
-
docs/ko/docs/python-types.md
* 이 `dict`의 키는 `str` 타입입니다(예: 각 아이템의 이름). * 이 `dict`의 값은 `float` 타입입니다(예: 각 아이템의 가격). #### Union { #union } 변수가 **여러 타입 중 어떤 것이든** 될 수 있다고 선언할 수 있습니다. 예를 들어 `int` 또는 `str`입니다. 이를 정의하려면 두 타입을 <dfn title='“비트 단위 OR 연산자”라고도 하지만, 여기서는 그 의미와 관련이 없습니다'>세로 막대(`|`)</dfn>로 구분해 사용합니다. 이는 두 타입 집합의 합집합(union) 안의 어느 것이든 될 수 있다는 뜻이므로 "유니온"이라고 부릅니다. ```Python hl_lines="1"Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 13K bytes - Click Count (0) -
internal/event/targetidset_test.go
{NewTargetIDSet(TargetID{"1", "webhook"}), NewTargetIDSet(TargetID{"1", "webhook"}), NewTargetIDSet(TargetID{"1", "webhook"})}, } for i, testCase := range testCases { result := testCase.set.Union(testCase.setToAdd) if !reflect.DeepEqual(testCase.expectedResult, result) { t.Fatalf("test %v: result: expected: %v, got: %v", i+1, testCase.expectedResult, result) } } }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 3.9K bytes - Click Count (0) -
tests/test_additional_responses_union_duplicate_anyof.py
""" Regression test: Ensure app-level responses with Union models and content/examples don't accumulate duplicate $ref entries in anyOf arrays. See https://github.com/fastapi/fastapi/pull/14463 """ from fastapi import FastAPI from fastapi.testclient import TestClient from inline_snapshot import snapshot from pydantic import BaseModel class ModelA(BaseModel): a: str class ModelB(BaseModel): b: str
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 4.3K bytes - Click Count (0) -
fastapi/param_functions.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 68K bytes - Click Count (0) -
src/main/java/jcifs/dcerpc/msrpc/srvsvc.java
} @Override public void decode_out(NdrBuffer _src) throws NdrException { this.level = _src.dec_ndr_long(); _src.dec_ndr_long(); /* union discriminant */ final int _infop = _src.dec_ndr_long(); if (_infop != 0) { if (this.info == null) { /* YOYOYO */ this.info = new ShareInfoCtr0();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 27K bytes - Click Count (0) -
misc/cgo/gmp/gmp.go
a Go translation. C arithmetic types translate to precisely-sized Go arithmetic types. A C struct translates to a Go struct, field by field; unrepresentable fields are replaced with opaque byte arrays. A C union translates into a struct containing the first union member and perhaps additional padding. C arrays become Go arrays. C pointers become Go pointers. C function pointers become Go's uintptr. C void pointers become Go's unsafe.Pointer.
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Mon Apr 11 16:34:30 GMT 2022 - 9.5K bytes - Click Count (0) -
docs/uk/docs/tutorial/response-model.md
{* ../../docs_src/response_model/tutorial003_04_py310.py hl[8] *} ...це не працює, тому що анотація типу не є типом Pydantic і не є просто одним класом `Response` або його підкласом, це union (будь-який із двох) між `Response` і `dict`. ### Вимкнути модель відповіді { #disable-response-model }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 25.2K bytes - Click Count (0) -
docs/ru/docs/tutorial/response-model.md
{* ../../docs_src/response_model/tutorial003_04_py310.py hl[8] *} ...это не сработает, потому что аннотация типа не является типом Pydantic и это не единственный класс `Response` или его подкласс, а объединение (`union`) из `Response` и `dict`. ### Отключить модель ответа { #disable-response-model }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 25.5K bytes - Click Count (0) -
tensorflow/c/eager/c_api_unified_experimental.h
// E.g. it could know whether we're in eager mode or graph mode, keeps track // of gradient tapes, etc. typedef struct TF_ExecutionContext TF_ExecutionContext; // A TF_AbstractTensor is an input to an operation. E.g. it could be a union // type of eager and graph tensors. It is also the result of executing an // operation. typedef struct TF_AbstractTensor TF_AbstractTensor; // A TF_AbstractOp is the metadata we need to execute an operation. E.g. this
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sun Oct 24 11:27:00 GMT 2021 - 7K bytes - Click Count (0) -
docs/pt/docs/python-types.md
* A variável `prices` é um `dict`: * As chaves deste `dict` são do tipo `str` (digamos, o nome de cada item). * Os valores deste `dict` são do tipo `float` (digamos, o preço de cada item). #### Union { #union } Você pode declarar que uma variável pode ser de qualquer um dentre **vários tipos**, por exemplo, um `int` ou um `str`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 11.7K bytes - Click Count (0)