Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1611 - 1620 of 3,874 for list (0.02 seconds)

  1. docs_src/generate_clients/tutorial001_py310.py

        message: str
    
    
    @app.post("/items/", response_model=ResponseMessage)
    async def create_item(item: Item):
        return {"message": "item received"}
    
    
    @app.get("/items/", response_model=list[Item])
    async def get_items():
        return [
            {"name": "Plumbus", "price": 3},
            {"name": "Portal Gun", "price": 9001},
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 494 bytes
    - Click Count (0)
  2. cmd/metacache-walk.go

    	// a trailing slash, this will avoid to list the object content.
    	if HasSuffix(opts.BaseDir, SlashSeparator) {
    		metadata, err := s.readMetadata(ctx, pathJoin(volumeDir,
    			opts.BaseDir[:len(opts.BaseDir)-1]+globalDirSuffix,
    			xlStorageFormatFile))
    		diskHealthCheckOK(ctx, err)
    		if err == nil {
    			// if baseDir is already a directory object, consider it
    			// as part of the list call, this is AWS S3 specific
    			// behavior.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon May 26 07:06:43 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  3. .teamcity/src/main/kotlin/configurations/FunctionalTest.kt

        id: String,
        name: String,
        description: String,
        val testCoverage: TestCoverage,
        stage: Stage,
        parallelizationMethod: ParallelizationMethod = ParallelizationMethod.None,
        subprojects: List<String> = listOf(),
        extraParameters: String = "",
        extraBuildSteps: BuildSteps.() -> Unit = {},
        preBuildSteps: BuildSteps.() -> Unit = {},
    ) : OsAwareBaseGradleBuildType(os = testCoverage.os, stage = stage, init = {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Oct 09 05:26:45 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  4. tests/test_dependency_after_yield_streaming.py

    SessionDep = Annotated[Session, Depends(dep_session)]
    BrokenSessionDep = Annotated[Session, Depends(broken_dep_session)]
    
    app = FastAPI()
    
    
    @app.get("/data")
    def get_data(session: SessionDep) -> Any:
        data = list(session)
        return data
    
    
    @app.get("/stream-simple")
    def get_stream_simple(session: SessionDep) -> Any:
        def iter_data():
            yield from ["x", "y", "z"]
    
        return StreamingResponse(iter_data())
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/tutorial/header-params.md

    /// warning | 警告
    
    在將 `convert_underscores` 設為 `False` 之前,請注意有些 HTTP 代理與伺服器不允許使用帶有底線的標頭。
    
    ///
    
    ## 重複的標頭 { #duplicate-headers }
    
    有時可能會收到重複的標頭,也就是同一個標頭會有多個值。
    
    可以在型別宣告中使用 list 來定義這種情況。
    
    你會以 Python 的 `list` 形式收到該重複標頭的所有值。
    
    例如,要宣告可以出現多次的 `X-Token` 標頭,可以這樣寫:
    
    {* ../../docs_src/header_params/tutorial003_an_py310.py hl[9] *}
    
    如果你在與該*路徑操作 (path operation)* 溝通時送出兩個 HTTP 標頭如下:
    
    ```
    X-Token: foo
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  6. docs_src/query_param_models/tutorial002_an_py310.py

    class FilterParams(BaseModel):
        model_config = {"extra": "forbid"}
    
        limit: int = Field(100, gt=0, le=100)
        offset: int = Field(0, ge=0)
        order_by: Literal["created_at", "updated_at"] = "created_at"
        tags: list[str] = []
    
    
    @app.get("/items/")
    async def read_items(filter_query: Annotated[FilterParams, Query()]):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Sep 17 18:54:10 GMT 2024
    - 483 bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/CompactHashMap.java

          // linked list starting from `newTable`. In general, each element from the old linked list
          // belongs to a different linked list from `newTable`. We insert each element in turn at the
          // head of its appropriate `newTable` linked list.
          while (oldNext != UNSET) {
            int entryIndex = oldNext - 1;
            int oldEntry = entries[entryIndex];
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 35.7K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.junit.jupiter.api.Assertions.fail;
    
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.atomic.AtomicInteger;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/io/Files.java

       *     helpful predefined constants
       * @return a mutable {@link List} containing all the lines
       * @throws IOException if an I/O error occurs
       */
      public static List<String> readLines(File file, Charset charset) throws IOException {
        // don't use asCharSource(file, charset).readLines() because that returns
        // an immutable list, which would change the behavior of this method
        return asCharSource(file, charset)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jan 05 22:13:21 GMT 2026
    - 32.8K bytes
    - Click Count (0)
  10. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java

            public String toString() {
                return source + (global ? " >> " : " > ") + target;
            }
        }
    
        private static class Relocations {
            private final List<Relocation> relocations;
    
            private Relocations(List<Relocation> relocations) {
                this.relocations = relocations;
            }
    
            private Relocation getRelocation(Artifact artifact) {
                return relocations.stream()
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 9K bytes
    - Click Count (0)
Back to Top