Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 221 - 230 of 945 for optionnel (0.05 seconds)

  1. tests/test_security_api_key_cookie_optional.py

    from typing import Optional
    
    from fastapi import Depends, FastAPI, Security
    from fastapi.security import APIKeyCookie
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    api_key = APIKeyCookie(name="key", auto_error=False)
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: Optional[str] = Security(api_key)):
        if oauth_header is None:
            return None
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.1K bytes
    - Click Count (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/Node.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.api;
    
    import java.util.List;
    import java.util.Optional;
    import java.util.function.Predicate;
    import java.util.stream.Stream;
    
    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.annotations.Immutable;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Mar 24 14:10:11 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  3. docs_src/separate_openapi_schemas/tutorial002_py39.py

    from typing import Optional
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: Optional[str] = None
    
    
    app = FastAPI(separate_input_output_schemas=False)
    
    
    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> list[Item]:
        return [
            Item(
                name="Portal Gun",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Aug 25 19:10:22 GMT 2023
    - 518 bytes
    - Click Count (0)
  4. tests/test_callable_endpoint.py

    from functools import partial
    from typing import Optional
    
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    
    def main(some_arg, q: Optional[str] = None):
        return {"some_arg": some_arg, "q": q}
    
    
    endpoint = partial(main, "foo")
    
    app = FastAPI()
    
    app.get("/")(endpoint)
    
    
    client = TestClient(app)
    
    
    def test_partial():
        response = client.get("/?q=bar")
        data = response.json()
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Jun 28 18:13:30 GMT 2020
    - 457 bytes
    - Click Count (0)
  5. docs/en/docs/index.md

    ### Additional Optional Dependencies { #additional-optional-dependencies }
    
    There are some additional dependencies you might want to install.
    
    Additional optional Pydantic dependencies:
    
    * <a href="https://docs.pydantic.dev/latest/usage/pydantic_settings/" target="_blank"><code>pydantic-settings</code></a> - for settings management.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 25 11:01:37 GMT 2025
    - 23.5K bytes
    - Click Count (0)
  6. compat/maven-compat/src/test/resources/inheritance-repo/t05/maven-test/poms/t05-b-2.0.pom

        </dependency>
        <dependency>
          <groupId>maven-test</groupId>
          <artifactId>t05-d</artifactId>
          <version>1.1</version>
          <type>jar</type>
          <scope>compile</scope>
          <optional>false</optional>
        </dependency>
      </dependencies>
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 622 bytes
    - Click Count (0)
  7. compat/maven-compat/src/test/resources/inheritance-repo/t08/maven-test/poms/t08-b-1.0.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>
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 622 bytes
    - Click Count (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/DependencyCoordinates.java

         */
        @Nonnull
        DependencyScope getScope();
    
        /**
         * Returns whether the dependency is optional, mandatory, or of unspecified obligation.
         *
         * @return {@code Boolean.TRUE} and {@code Boolean.FALSE} if optional, or {@code null} if unspecified
         */
        @Nullable
        Boolean getOptional();
    
        /**
         * {@return transitive dependencies to exclude}
         */
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Mar 05 14:29:21 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  9. .github/ISSUE_TEMPLATE/30_contributor_regression.yml

        id: build-scan-url
        attributes:
          label: Build scan URL (optional)
          description: |
            You can run your build command with `--scan` to publish a Build Scan to [scans.gradle.com](https://scans.gradle.com/).
        validations:
          required: false
      - type: textarea
        id: environment
        attributes:
          label: Your Environment (optional)
          description: |
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Sep 09 14:48:49 GMT 2024
    - 2.7K bytes
    - Click Count (0)
  10. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategyTest.java

                UpgradeOptions options = mock(UpgradeOptions.class);
                when(options.modelVersion()).thenReturn(Optional.of("4.1.0"));
                when(options.all()).thenReturn(Optional.empty());
                UpgradeContext context = createMockContext(options);
    
                UpgradeResult result = strategy.doApply(context, pomMap);
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 38.8K bytes
    - Click Count (0)
Back to Top