Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 72 for UUID (0.02 seconds)

  1. tests/test_inherited_custom_class.py

    import uuid
    
    import pytest
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    
    class MyUuid:
        def __init__(self, uuid_string: str):
            self.uuid = uuid_string
    
        def __str__(self):
            return self.uuid
    
        @property  # type: ignore
        def __class__(self):
            return uuid.UUID
    
        @property
        def __dict__(self):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt

      }
    
      @Test
      fun replaceOnlyTag() {
        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
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Oct 24 11:36:14 GMT 2025
    - 24.4K bytes
    - Click Count (0)
  3. docs_src/extra_data_types/tutorial001_py39.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),
    ):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 755 bytes
    - Click Count (0)
  4. tests/test_pydanticv2_dataclasses_uuid_stringified_annotations.py

    from __future__ import annotations
    
    import uuid
    from dataclasses import dataclass, field
    from typing import Union
    
    from dirty_equals import IsUUID
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    
    @dataclass
    class Item:
        id: uuid.UUID
        name: str
        price: float
        tags: list[str] = field(default_factory=list)
        description: Union[str, None] = None
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.1K bytes
    - Click Count (0)
  5. 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
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  6. .teamcity/src/main/kotlin/projects/StageProject.kt

        previousCrossVersionTests: List<BaseGradleBuildType>,
    ) : Project({
            this.id("${model.projectId}_Stage_${stage.stageName.id}")
            this.uuid = "${DslContext.uuidPrefix}_${model.projectId}_Stage_${stage.stageName.uuid}"
            this.name = stage.stageName.stageName
            this.description = stage.stageName.description
        }) {
        val specificBuildTypes: List<OsAwareBaseGradleBuildType>
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Oct 16 00:34:25 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  7. .teamcity/src/main/kotlin/model/CIBuildModel.kt

        val failStage: Boolean = true,
    ) {
        constructor(
            uuid: Int,
            testType: TestType,
            os: Os,
            testJvm: JvmCategory,
            expectedBucketNumber: Int = DEFAULT_FUNCTIONAL_TEST_BUCKET_SIZE,
            buildJvm: Jvm = BuildToolBuildJvm,
            arch: Arch = Arch.AMD64,
            failStage: Boolean = true,
        ) : this(
            uuid,
            testType,
            os,
            testJvm.version,
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Nov 05 13:00:26 GMT 2025
    - 27.5K bytes
    - Click Count (0)
  8. cmd/erasure-healing-common.go

    	"context"
    	"slices"
    	"time"
    
    	"github.com/minio/madmin-go/v3"
    )
    
    func commonETags(etags []string) (etag string, maxima int) {
    	etagOccurrenceMap := make(map[string]int, len(etags))
    
    	// Ignore the uuid sentinel and count the rest.
    	for _, etag := range etags {
    		if etag == "" {
    			continue
    		}
    		etagOccurrenceMap[etag]++
    	}
    
    	maxima = 0 // Counter for remembering max occurrence of elements.
    	latest := ""
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 12K bytes
    - Click Count (0)
  9. .teamcity/src/main/kotlin/configurations/StageTriggers.kt

        prevStage: Stage?,
        os: Os?,
        dependencies: List<BaseGradleBuildType>,
        generateTriggers: Boolean = true,
    ) : BaseGradleBuildType(init = {
            id(stageTriggerId(model, stage, os))
            uuid = stageTriggerUuid(model, stage, os)
            name = stage.stageName.stageName + " (Trigger)" + (os?.asName()?.toCapitalized()?.let { "($it)" } ?: "")
            type = Type.COMPOSITE
    
            applyDefaultSettings()
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 30 12:17:39 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  10. .teamcity/src/main/kotlin/promotion/PublishNightlyDocumentation.kt

        branch: VersionedSettingsBranch,
    ) : PublishGradleDistributionFullBuild(
            promotedBranch = branch.branchName,
            promoteTask = "publishBranchDocs",
            triggerName = StageName.PULL_REQUEST_FEEDBACK.uuid,
        ) {
        init {
            id("Promotion_NightlyDocumentation")
            name = "Nightly Documentation"
            description =
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Dec 29 08:57:18 GMT 2025
    - 1.6K bytes
    - Click Count (0)
Back to Top