- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 219 for a_uuid (0.15 sec)
-
tests/test_inherited_custom_class.py
class Config: arbitrary_types_allowed = True json_encoders = {uuid.UUID: str} a_uuid: MyUuid @app.get("/get_custom_class") def return_some_user(): # Test that the fix also works for custom pydantic classes return SomeCustomClass(a_uuid=MyUuid("b8799909-f914-42de-91bc-95c819218d01")) client = TestClient(app) with client:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 17 04:13:50 UTC 2024 - 3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RequestTest.kt
val uuidTag1 = UUID.randomUUID() val uuidTag2 = UUID.randomUUID() val request = Request.Builder() .url("https://square.com") .tag(UUID::class.java, uuidTag1) .tag(UUID::class.java, uuidTag2) .build() assertThat(request.tag(UUID::class.java)).isSameAs(uuidTag2) } @Test fun multipleTags() { val uuidTag = UUID.randomUUID()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 16.4K bytes - Viewed (0) -
docs_src/extra_data_types/tutorial001.py
from datetime import datetime, time, timedelta from typing import Union from uuid import UUID from fastapi import Body, FastAPI app = FastAPI() @app.put("/items/{item_id}") async def read_items( item_id: UUID, start_datetime: datetime = Body(), end_datetime: datetime = Body(), process_after: timedelta = Body(), repeat_at: Union[time, None] = Body(default=None), ):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Apr 19 00:11:40 UTC 2024 - 755 bytes - Viewed (0) -
docs_src/extra_data_types/tutorial001_an.py
from datetime import datetime, time, timedelta from typing import Union from uuid import UUID from fastapi import Body, FastAPI from typing_extensions import Annotated app = FastAPI() @app.put("/items/{item_id}") async def read_items( item_id: UUID, start_datetime: Annotated[datetime, Body()], end_datetime: Annotated[datetime, Body()], process_after: Annotated[timedelta, Body()],
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Apr 19 00:11:40 UTC 2024 - 830 bytes - Viewed (0) -
internal/etag/reader.go
// Size - implement hash.Hash Size func (u UUIDHash) Size() int { return len(u.uuid) } // BlockSize - implement hash.Hash BlockSize func (u UUIDHash) BlockSize() int { return md5.BlockSize } var _ hash.Hash = &UUIDHash{} // NewUUIDHash - new UUIDHash func NewUUIDHash(uuid []byte) *UUIDHash { return &UUIDHash{uuid: uuid}
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 4.8K bytes - Viewed (0) -
tests/postgres_test.go
if !hasLogID { t.Fatalf("failed to found column log_id") } } type Post struct { ID uuid.UUID `gorm:"primary_key;type:uuid;default:uuid_generate_v4();"` Title string Categories []*Category `gorm:"Many2Many:post_categories"` } type Category struct { ID uuid.UUID `gorm:"primary_key;type:uuid;default:uuid_generate_v4();"` Title string Posts []*Post `gorm:"Many2Many:post_categories"` }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Oct 08 09:16:32 UTC 2022 - 6.4K bytes - Viewed (0) -
docs/debugging/reorder-disks/main.go
} mami, err := getMajorMinor(diskName) if err != nil { log.Printf("skipping `%s`, err: %v\n", diskName, err) continue } devName := mountMap[mami] uuid := uuidMap[devName] fmt.Printf("UUID=%s\t%s\txfs\tdefaults,noatime\t0\t2\n", uuid, expectedDiskName) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/net/UuidUtilTest.java
/** * Test method for {@link org.codelibs.core.net.UuidUtil#create()}. */ public void testCreate() { final String uuid = UuidUtil.create(); System.out.println(uuid); final String uuid2 = UuidUtil.create(); System.out.println(uuid2); assertFalse(uuid.equals(uuid2)); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.1K bytes - Viewed (0) -
internal/store/queuestore.go
return os.Remove(store.directory) } // PutMultiple - puts an item to the store. func (store *QueueStore[I]) PutMultiple(items []I) (Key, error) { // Generate a new UUID for the key. uid, err := uuid.NewRandom() if err != nil { return Key{}, err } store.Lock() defer store.Unlock() if uint64(len(store.entries)) >= store.entryLimit { return Key{}, errLimitExceeded }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 8.6K bytes - Viewed (0) -
.teamcity/src/main/kotlin/model/PerformanceTestSpec.kt
} data class FlameGraphGeneration( private val uuid: Int, private val name: String, private val scenarios: List<PerformanceScenario> ) : PerformanceTestProjectSpec { override val os: Os = Os.LINUX override fun asConfigurationId(model: CIBuildModel) = "${model.projectId}_PerformanceTest$uuid" override fun asName(): String = "Flamegraphs for $name"
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Jul 18 07:02:47 UTC 2024 - 3.9K bytes - Viewed (0)