Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 992 for optionale (0.04 sec)

  1. tests/test_enforce_once_required_parameter.py

    from typing import Optional
    
    from fastapi import Depends, FastAPI, Query, status
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    def _get_client_key(client_id: str = Query(...)) -> str:
        return f"{client_id}_key"
    
    
    def _get_client_tag(client_id: Optional[str] = Query(None)) -> Optional[str]:
        if client_id is None:
            return None
        return f"{client_id}_tag"
    
    
    @app.get("/foo")
    def foo_handler(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 16 17:21:48 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/WinErrorTest.java

        private static Optional<String> lookupMessage(int code) {
            int[] codes = WinError.WINERR_CODES;
            String[] msgs = WinError.WINERR_MESSAGES;
            for (int i = 0; i < codes.length; i++) {
                if (codes[i] == code) {
                    return Optional.of(msgs[i]);
                }
            }
            return Optional.empty();
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  3. api/maven-api-core/src/test/java/org/apache/maven/api/SourceRootTest.java

        }
    
        @Override
        public Language language() {
            return (language != null) ? language : SourceRoot.super.language();
        }
    
        @Override
        public Optional<String> module() {
            return Optional.ofNullable(moduleName);
        }
    
        @Override
        public PathMatcher matcher(Collection<String> defaultIncludes, boolean useDefaultExcludes) {
            return null; // Not used for this test.
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Oct 26 17:22:14 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/ConsolePasswordPrompt.java

            this.prompter = prompter;
        }
    
        @Override
        public String description() {
            return "Secure console password prompt";
        }
    
        @Override
        public Optional<String> configTemplate() {
            return Optional.empty();
        }
    
        @Override
        public String handle(String config) throws SecDispatcherException {
            if (NAME.equals(config)) {
                try {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Nov 16 13:55:43 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationRequest.java

        BeanConfigurationRequest setClassLoader(ClassLoader classLoader);
    
        /**
         * Gets the optional preprocessor for configuration values.
         *
         * @return The preprocessor for configuration values or {@code null} if none.
         */
        BeanConfigurationValuePreprocessor getValuePreprocessor();
    
        /**
         * Sets the optional preprocessor for configuration values.
         *
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. fastapi/datastructures.py

            BinaryIO,
            Doc("The standard Python file object (non-async)."),
        ]
        filename: Annotated[Optional[str], Doc("The original file name.")]
        size: Annotated[Optional[int], Doc("The size of the file in bytes.")]
        headers: Annotated[Headers, Doc("The headers of the request.")]
        content_type: Annotated[
            Optional[str], Doc("The content type of the request, from the headers.")
        ]
    
        async def write(
            self,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  7. impl/maven-core/src/test/java/org/apache/maven/execution/DefaultBuildResumptionAnalyzerTest.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.execution;
    
    import java.util.Optional;
    
    import org.apache.maven.lifecycle.LifecycleExecutionException;
    import org.apache.maven.model.Dependency;
    import org.apache.maven.project.MavenProject;
    import org.junit.jupiter.api.BeforeEach;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/query-params-str-validations.md

    이 응용 프로그램을 예로 들어보겠습니다:
    
    {* ../../docs_src/query_params_str_validations/tutorial001.py hl[9] *}
    
    쿼리 매개변수 `q`는 `Optional[str]` 자료형입니다. 즉, `str` 자료형이지만 `None` 역시 될 수 있음을 뜻하고, 실제로 기본값은 `None`이기 때문에 FastAPI는 이 매개변수가 필수가 아니라는 것을 압니다.
    
    /// note | 참고
    
    FastAPI는 `q`의 기본값이 `= None`이기 때문에 필수가 아님을 압니다.
    
    `Optional[str]`에 있는 `Optional`은 FastAPI가 사용하는게 아니지만, 편집기에게 더 나은 지원과 오류 탐지를 제공하게 해줍니다.
    
    ///
    
    ## 추가 검증
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. compat/maven-compat/src/test/resources/inheritance-repo/t08/maven-test/poms/t08-b-1.1.pom

        </dependency>
        <dependency>
          <groupId>maven-test</groupId>
          <artifactId>t08-d</artifactId>
          <version>1.1</version>
          <type>jar</type>
          <scope>compile</scope>
          <optional>false</optional>
        </dependency>
      </dependencies>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 622 bytes
    - Viewed (0)
  10. compat/maven-compat/src/test/resources/inheritance-repo/t06/p0/p1/pom.xml

          </dependency>
          <dependency>
            <groupId>maven-test</groupId>
            <artifactId>t06-d</artifactId>
            <version>1.0</version>
            <scope>test</scope>
            <optional>false</optional>
          </dependency>
        </dependencies>
      </dependencyManagement>
      <dependencies>
        <dependency>
          <groupId>maven-test</groupId>
          <artifactId>t06-a</artifactId>
          <version>1.0</version>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.3K bytes
    - Viewed (0)
Back to top