Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 281 - 290 of 962 for optionals (0.09 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_tutorial/test_encoder/test_tutorial001.py

                "timestamp": "2023-01-01T12:00:00",
                "description": "An optional description",
            },
        )
        assert response.status_code == 200
        assert "123" in fake_db
        assert fake_db["123"] == {
            "title": "Foo",
            "timestamp": "2023-01-01T12:00:00",
            "description": "An optional description",
        }
    
    
    def test_put_invalid_data(client: TestClient, mod: ModuleType):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  2. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenPropertiesLoader.java

        }
    
        private static void trimValues(MavenProperties configProps) {
            configProps.replaceAll((k, v) -> v.trim());
        }
    
        private static String nextLocation(StringTokenizer st) {
            boolean optional = false;
            String retVal = null;
    
            if (st.countTokens() > 0) {
                String tokenList = "?\",";
                StringBuilder tokBuf = new StringBuilder(10);
                String tok;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 24 17:29:44 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  3. tests/test_security_oauth2_optional_description.py

    
    def get_current_user(oauth_header: Optional[str] = Security(reusable_oauth2)):
        if oauth_header is None:
            return None
        user = User(username=oauth_header)
        return user
    
    
    @app.post("/login")
    def login(form_data: OAuth2PasswordRequestFormStrict = Depends()):
        return form_data
    
    
    @app.get("/users/me")
    def read_users_me(current_user: Optional[User] = Depends(get_current_user)):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProject.java

        }
    
        @Override
        public Path getRootDirectory() {
            return project.getRootDirectory();
        }
    
        @Override
        public Optional<Project> getParent() {
            MavenProject parent = project.getParent();
            return Optional.ofNullable(session.getProject(parent));
        }
    
        @Override
        @Nonnull
        public List<Profile> getDeclaredProfiles() {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Mar 24 22:23:23 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/app/web/go/GoForm.java

         */
        @Size(max = 10000)
        @Required
        public String rt;
    
        /**
         * Hash value for security or validation purposes.
         * This field is optional and used for request verification.
         */
        public String hash;
    
        /**
         * Query identifier associated with the search that led to this document access.
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        return pickInstance(Currency.getAvailableCurrencies(), Currency.getInstance(Locale.US));
      }
    
      @Empty
      <T> Optional<T> generateJavaOptional() {
        return Optional.empty();
      }
    
      @Generates
      <T> Optional<T> generateJavaOptional(T value) {
        return Optional.of(value);
      }
    
      @Generates
      OptionalInt generateOptionalInt() {
        return OptionalInt.of(generateInt());
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 28.7K bytes
    - Click Count (0)
  7. docs/zh/docs/tutorial/query-params.md

    本例中,查询参数 `q` 是可选的,默认值为 `None`。
    
    /// check | 检查
    
    注意,**FastAPI** 可以识别出 `item_id` 是路径参数,`q` 不是路径参数,而是查询参数。
    
    ///
    
    /// note | 笔记
    
    因为默认值为 `= None`,FastAPI 把 `q` 识别为可选参数。
    
    FastAPI 不使用 `Optional[str]` 中的 `Optional`(只使用 `str`),但 `Optional[str]` 可以帮助编辑器发现代码中的错误。
    
    ///
    
    ## 查询参数类型转换
    
    参数还可以声明为 `bool` 类型,FastAPI 会自动转换参数类型:
    
    
    {* ../../docs_src/query_params/tutorial003_py310.py hl[7] *}
    
    本例中,访问:
    
    ```
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 4.3K bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/IteratorFeature.java

       * implementations.
       */
      SUPPORTS_SET;
    
      /**
       * A set containing none of the optional features of the {@link Iterator} or {@link ListIterator}
       * interfaces.
       */
      public static final Set<IteratorFeature> UNMODIFIABLE = emptySet();
    
      /**
       * A set containing all of the optional features of the {@link Iterator} and {@link ListIterator}
       * interfaces.
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 03 18:22:43 GMT 2023
    - 1.9K bytes
    - Click Count (0)
  9. impl/maven-core/src/test/java/org/apache/maven/graph/DefaultGraphBuilderTest.java

                            .nonRecursive()
                            .expectResult(MODULE_C),
                    scenario("Selected optional project")
                            .activeOptionalProjects(MODULE_B)
                            .expectResult(MODULE_B),
                    scenario("Selected missing optional project")
                            .activeOptionalProjects("non-existing-module")
                            .expectResult(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 09 20:39:03 GMT 2025
    - 28K bytes
    - Click Count (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/Project.java

         * @see org.apache.maven.api.services.ArtifactManager#getPath(Artifact)
         */
        @Nonnull
        default Optional<ProducedArtifact> getMainArtifact() {
            List<ProducedArtifact> artifacts = getArtifacts();
            return artifacts.size() == 2 ? Optional.of(artifacts.get(1)) : Optional.empty();
        }
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Nov 07 13:11:07 GMT 2025
    - 15.3K bytes
    - Click Count (0)
Back to Top