Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for str (0.03 sec)

  1. fastapi/param_functions.py

                """
            ),
        ] = _Unset,
        # TODO: update when deprecating Pydantic v1, import these types
        # validation_alias: str | AliasPath | AliasChoices | None
        validation_alias: Annotated[
            Union[str, None],
            Doc(
                """
                'Whitelist' validation step. The parameter field will be the single one
                allowed by the alias or set of aliases defined.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 62.5K bytes
    - Viewed (0)
  2. tests/test_generate_unique_id_function.py

        return f"bar_{route.name}"
    
    
    def custom_generate_unique_id3(route: APIRoute):
        return f"baz_{route.name}"
    
    
    class Item(BaseModel):
        name: str
        price: float
    
    
    class Message(BaseModel):
        title: str
        description: str
    
    
    def test_top_level_generate_unique_id():
        app = FastAPI(generate_unique_id_function=custom_generate_unique_id)
        router = APIRouter()
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jan 13 15:10:26 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  3. src/bufio/bufio_test.go

    	b.ReportAllocs()
    	str := strings.Repeat("x", 16<<10)
    	for i := 0; i < b.N; i++ {
    		br := NewReader(strings.NewReader(str))
    		n, err := io.Copy(io.Discard, br)
    		if err != nil {
    			b.Fatal(err)
    		}
    		if n != int64(len(str)) {
    			b.Fatal("wrong length")
    		}
    	}
    }
    
    func BenchmarkWriterEmpty(b *testing.B) {
    	b.ReportAllocs()
    	str := strings.Repeat("x", 1<<10)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

        private static String stripLeadingAndTrailingQuotes(String str) {
            final int length = str.length();
            if (length > 1
                    && str.startsWith("\"")
                    && str.endsWith("\"")
                    && str.substring(1, length - 1).indexOf('"') == -1) {
                str = str.substring(1, length - 1);
            }
    
            return str;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool.go

    func (hr HealthResult) String() string {
    	var str strings.Builder
    	for i, es := range hr.ESHealth {
    		str.WriteString("(Pool: ")
    		str.WriteString(strconv.Itoa(es.PoolID))
    		str.WriteString(" Set: ")
    		str.WriteString(strconv.Itoa(es.SetID))
    		str.WriteString(" Healthy: ")
    		str.WriteString(strconv.FormatBool(es.Healthy))
    		if i == 0 {
    			str.WriteString(")")
    		} else {
    			str.WriteString(") | ")
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  6. tests/test_application.py

                                "name": "item_id",
                                "in": "path",
                            }
                        ],
                    }
                },
                "/path/str/{item_id}": {
                    "get": {
                        "responses": {
                            "200": {
                                "description": "Successful Response",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 52.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Multimaps.java

       *     Stream.of("banana", "apple", "carrot", "asparagus", "cherry")
       *         .collect(
       *             toMultimap(
       *                  str -> str.charAt(0),
       *                  str -> str.substring(1),
       *                  MultimapBuilder.treeKeys().arrayListValues()::build));
       *
       * // is equivalent to
       *
       * static final ListMultimap<Character, String> FIRST_LETTER_MULTIMAP;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  8. src/cmd/cgo/gcc.go

    	for _, call := range f.Calls {
    		if call.Done {
    			continue
    		}
    		start := f.offset(call.Call.Pos())
    		end := f.offset(call.Call.End())
    		str, nu := p.rewriteCall(f, call)
    		if str != "" {
    			f.Edit.Replace(start, end, str)
    			if nu {
    				needsUnsafe = true
    			}
    		}
    	}
    	return needsUnsafe
    }
    
    // rewriteCall rewrites one call to add pointer checks.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
  9. docs/ru/docs/deployment/docker.md

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile
    
    В этой же директории создайте файл `Dockerfile` и заполните его:
    
    ```{ .dockerfile .annotate }
    # (1)
    FROM python:3.9
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/testdata/arm64.s

    	FMOVD	8(R1), F2 // 220440fd
    	FMOVQ	32(R5), F2 // a208c03d
    	FMOVQ	65520(R10), F10 // 4afdff3d
    	FMOVQ	64(RSP), F11    // eb13c03d
    
    // medium offsets that either fit a single instruction or can use add+ldr/str
    	MOVD -4095(R17), R3                        // 3bfe3fd1630340f9
    	MOVD -391(R17), R3                         // 3b1e06d1630340f9
    	MOVD -257(R17), R3                         // 3b0604d1630340f9
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Jul 24 18:45:14 UTC 2024
    - 95.2K bytes
    - Viewed (0)
Back to top