- Sort Score
- Result 10 results
- Languages All
Results 5081 - 5090 of 5,353 for Return (0.05 sec)
-
docs/uk/docs/tutorial/handling-errors.md
Перевага використання `генерації` (raise) помилки замість `повернення` значення (return) стане більш очевидним в розділі про Залежності та Безпеку. У цьому прикладі, якщо клієнт запитує елемент за ID, якого не існує, буде згенеровано помилку зі статус-кодом `404`:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri May 30 13:31:13 UTC 2025 - 13.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/EventBusTest.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 11.3K bytes - Viewed (0) -
docs/uk/docs/features.md
Ось приклад стандартного Python-коду з типами: ```Python from datetime import date from pydantic import BaseModel # Оголошення змінної як str # з підтримкою автодоповнення у редакторі def main(user_id: str): return user_id # Модель Pydantic class User(BaseModel): id: int name: str joined: date ``` Приклад використання цієї моделі: ```Python
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri Feb 07 22:08:49 UTC 2025 - 14.3K bytes - Viewed (0) -
docs/es/docs/features.md
```Python from datetime import date from pydantic import BaseModel # Declara una variable como un str # y obtiene soporte del editor dentro de la función def main(user_id: str): return user_id # Un modelo de Pydantic class User(BaseModel): id: int name: str joined: date ``` Que luego puede ser usado como: ```Python
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Dec 30 17:46:44 UTC 2024 - 10.4K bytes - Viewed (0) -
docs/zh-hant/docs/features.md
如果你寫帶有 Python 型別的程式碼: ```python from datetime import date from pydantic import BaseModel # 宣告一個變數為 string # 並在函式中獲得 editor support def main(user_id: str): return user_id # 宣告一個 Pydantic model class User(BaseModel): id: int name: str joined: date ``` 可以像這樣來使用: ```python my_user: User = User(id=3, name="John Doe", joined="2018-07-19")
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Tue Dec 10 10:48:41 UTC 2024 - 9.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/BytesTest.java
assertThat(Bytes.toArray(list.subList(2, 2))).isEqualTo(new byte[] {}); } // `primitives` can't depend on `collect`, so this is what the prod code has to return. @SuppressWarnings("EmptyList") public void testAsListEmpty() { assertThat(Bytes.asList(EMPTY)).isSameInstanceAs(Collections.emptyList()); } public void testReverse() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 17.5K bytes - Viewed (0) -
src/archive/zip/writer_test.go
}) } func writeTestsToFS(tests []WriteTest) fs.FS { fsys := fstest.MapFS{} for _, wt := range tests { fsys[wt.Name] = &fstest.MapFile{ Data: wt.Data, Mode: wt.Mode, } } return fsys } func TestWriterAddFS(t *testing.T) { buf := new(bytes.Buffer) w := NewWriter(buf) tests := []WriteTest{ {Name: "emptyfolder", Mode: 0o755 | os.ModeDir},
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Jan 28 04:20:09 UTC 2025 - 14.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java
assertSuccessful(future, 1); } /** Concrete subclass for testing. */ private static class TestedFuture<V> extends AbstractFuture<V> { private static <V> TestedFuture<V> create() { return new TestedFuture<V>(); } } private static final class CountingRunnable implements Runnable { int count; @Override public void run() { count++; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 15.4K bytes - Viewed (0) -
cmd/storage-rest_test.go
if err == nil || errors.Is(err, errUnformattedDisk) { break } time.Sleep(time.Duration(rand.Float64() * float64(100*time.Millisecond))) } return restClient } func TestStorageRESTClientDiskInfo(t *testing.T) { restClient := newStorageRESTHTTPServerClient(t) testStorageAPIDiskInfo(t, restClient) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 11.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketReaderTest.kt
assertThat(expected.message!!).contains("closed") } } private fun binaryData(length: Int): ByteString { val junk = ByteArray(length) random.nextBytes(junk) return junk.toByteString() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 14.4K bytes - Viewed (0)