Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 2,304 for NResults (0.22 sec)

  1. docs_src/query_params_str_validations/tutorial005_an_py39.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: Annotated[str, Query(min_length=3)] = "fixedquery"):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 309 bytes
    - Viewed (0)
  2. docs_src/query_params_str_validations/tutorial007_py310.py

    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: str | None = Query(default=None, title="Query string", min_length=3),
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 304 bytes
    - Viewed (0)
  3. docs_src/query_params_str_validations/tutorial002_an_py310.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: Annotated[str | None, Query(max_length=50)] = None):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 309 bytes
    - Viewed (0)
  4. docs_src/path_params_numeric_validations/tutorial004.py

    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        *, item_id: int = Path(title="The ID of the item to get", ge=1), q: str
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 280 bytes
    - Viewed (0)
  5. docs_src/body_multiple_params/tutorial004_an_py310.py

        *,
        item_id: int,
        item: Item,
        user: User,
        importance: Annotated[int, Body(gt=0)],
        q: str | None = None,
    ):
        results = {"item_id": item_id, "item": item, "user": user, "importance": importance}
        if q:
            results.update({"q": q})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 643 bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

        return failure();
    
      // If no resource type results were found, no further cleanup needed.
      if (!has_resource_result) return success();
    
      // Drop unused results.
      EliminateUnusedResultsForIfCase(op, branches);
      return success();
    }
    
    // Canonicalizes a functional while. Forwards common argument to results and
    // drop resource results if posible.
    LogicalResult CanonicalizeFunctionalWhile(TF::WhileOp op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/selectors/SelectorStateResolverResults.java

        private final VersionParser versionParser;
        private final List<Registration> results;
    
        public SelectorStateResolverResults(Comparator<Version> versionComparator, VersionParser versionParser, int size) {
            this.versionParser = versionParser;
            this.results = Lists.newArrayListWithCapacity(size);
            this.versionComparator = versionComparator;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 10K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/project/ProjectBuildingException.java

            this.projectId = projectId;
            this.pomFile = pomFile;
        }
    
        public ProjectBuildingException(List<ProjectBuildingResult> results) {
            super("Some problems were encountered while processing the POMs");
            this.projectId = "";
            this.results = results;
        }
    
        public File getPomFile() {
            return pomFile;
        }
    
        /**
         * @deprecated use {@link #getPomFile()}
         */
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/integrator.go

    	igr.Lock()
    	defer igr.Unlock()
    	results := igr.getResultsLocked()
    	igr.moments = Moments{}
    	igr.min = igr.x
    	igr.max = igr.x
    	return results
    }
    
    func (igr *integrator) getResultsLocked() (results IntegratorResults) {
    	igr.updateLocked()
    	results.Min, results.Max = igr.min, igr.max
    	results.Duration = igr.moments.ElapsedSeconds
    	results.Average, results.Deviation = igr.moments.AvgAndStdDev()
    	return
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 17:37:20 UTC 2022
    - 5K bytes
    - Viewed (0)
  10. docs_src/query_params_str_validations/tutorial009_an_py39.py

    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: Annotated[Union[str, None], Query(alias="item-query")] = None):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 327 bytes
    - Viewed (0)
Back to top