Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 993 for opcional (0.06 seconds)

  1. tests/main.py

        return f"foo bar {query}"
    
    
    @app.get("/query/optional")
    def get_query_optional(query=None):
        if query is None:
            return "foo bar"
        return f"foo bar {query}"
    
    
    @app.get("/query/int")
    def get_query_type(query: int):
        return f"foo bar {query}"
    
    
    @app.get("/query/int/optional")
    def get_query_type_optional(query: Optional[int] = None):
        if query is None:
            return "foo bar"
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactManager.java

     */
    @Experimental
    public interface ArtifactManager extends Service {
    
        /**
         * Returns the path of the file previously associated to this artifact
         * or {@code Optional.empty()} if no path has been associated.
         */
        @Nonnull
        Optional<Path> getPath(@Nonnull Artifact artifact);
    
        /**
         * Associates the given file path to the artifact.
         */
        void setPath(@Nonnull ProducedArtifact artifact, Path path);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Aug 27 21:13:34 GMT 2024
    - 1.5K bytes
    - Click Count (0)
  3. internal/config/policy/plugin/help.go

    			Optional:    true,
    			Type:        "string",
    			Sensitive:   true,
    			Secret:      true,
    		},
    		config.HelpKV{
    			Key:         EnableHTTP2,
    			Description: "Enable experimental HTTP2 support to connect to plugin service" + defaultHelpPostfix(EnableHTTP2),
    			Optional:    true,
    			Type:        "bool",
    		},
    		config.HelpKV{
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Jun 23 14:45:27 GMT 2023
    - 1.8K bytes
    - Click Count (0)
  4. internal/config/batch/help.go

    			Optional:    true,
    			Type:        "duration",
    		},
    		config.HelpKV{
    			Key:         KeyRotationWorkersWait,
    			Description: `maximum sleep duration between objects to slow down batch keyrotation operation` + defaultHelpPostfix(KeyRotationWorkersWait),
    			Optional:    true,
    			Type:        "duration",
    		},
    		config.HelpKV{
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sat Dec 02 10:51:33 GMT 2023
    - 1.8K bytes
    - Click Count (0)
  5. tests/test_validate_response_dataclass.py

    from typing import Optional
    
    import pytest
    from fastapi import FastAPI
    from fastapi.exceptions import ResponseValidationError
    from fastapi.testclient import TestClient
    from pydantic.dataclasses import dataclass
    
    app = FastAPI()
    
    
    @dataclass
    class Item:
        name: str
        price: Optional[float] = None
        owner_ids: Optional[list[int]] = None
    
    
    @app.get("/items/invalid", response_model=Item)
    def get_invalid():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  6. fastapi/security/utils.py

    from typing import Optional
    
    
    def get_authorization_scheme_param(
        authorization_header_value: Optional[str],
    ) -> tuple[str, str]:
        if not authorization_header_value:
            return "", ""
        scheme, _, param = authorization_header_value.partition(" ")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 286 bytes
    - Click Count (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectBuilderResult.java

         *
         * @return the optional POM file
         */
        @Nonnull
        Optional<Path> getPomFile();
    
        /**
         * Gets the project that was built.
         *
         * @return The project that was built or {@code null} if an error occurred and this result accompanies a
         *         {@link ProjectBuilderException}.
         */
        @Nonnull
        Optional<Project> getProject();
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jan 29 08:17:07 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  8. apache-maven/src/assembly/maven/bin/mvnDebug

    # Apache Maven Debug Script
    #
    # Environment Variable Prerequisites
    #
    #   JAVA_HOME           (Optional) Points to a Java installation.
    #   MAVEN_OPTS          (Optional) Java runtime options used when Maven is executed.
    #   MAVEN_SKIP_RC       (Optional) Flag to disable loading of mavenrc files.
    #   MAVEN_DEBUG_ADDRESS (Optional) Set the debug address. Default value is localhost:8000
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 18 11:01:21 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  9. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategyTest.java

            void shouldBeApplicableWhenModelOptionTrue() {
                UpgradeOptions options = mock(UpgradeOptions.class);
                when(options.model()).thenReturn(Optional.of(true));
                when(options.all()).thenReturn(Optional.empty());
    
                UpgradeContext context = createMockContext(options);
    
                assertTrue(strategy.isApplicable(context), "Strategy should be applicable when --model is true");
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  10. tests/test_security_openid_connect_optional.py

    from typing import Optional
    
    from fastapi import Depends, FastAPI, Security
    from fastapi.security.open_id_connect_url import OpenIdConnect
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    oid = OpenIdConnect(openIdConnectUrl="/openid", auto_error=False)
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: Optional[str] = Security(oid)):
        if oauth_header is None:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.4K bytes
    - Click Count (0)
Back to Top