Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 996 for optional (0.07 sec)

  1. internal/config/lambda/help.go

    		config.HelpKV{
    			Key:         target.WebhookAuthToken,
    			Description: "opaque string or JWT authorization token",
    			Optional:    true,
    			Type:        "string",
    			Sensitive:   true,
    			Secret:      true,
    		},
    		config.HelpKV{
    			Key:         config.Comment,
    			Description: config.DefaultComment,
    			Optional:    true,
    			Type:        "sentence",
    		},
    		config.HelpKV{
    			Key:         target.WebhookClientCert,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 23 14:45:27 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/FluentIterable.java

      public final Optional<@NonNull E> first() {
        Iterator<E> iterator = getDelegate().iterator();
        return iterator.hasNext() ? Optional.of(iterator.next()) : Optional.absent();
      }
    
      /**
       * Returns an {@link Optional} containing the last element in this fluent iterable. If the
       * iterable is empty, {@code Optional.absent()} is returned. If the underlying {@code iterable} is
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        assertEquals(
            com.google.common.base.Optional.absent(),
            generator.generateFresh(new TypeToken<com.google.common.base.Optional<String>>() {}));
        assertEquals(
            com.google.common.base.Optional.of("2"),
            generator.generateFresh(new TypeToken<com.google.common.base.Optional<String>>() {}));
        // Test that the first generated instance for different cgcb.Optional<T> is always absent().
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 17.2K bytes
    - Viewed (0)
  4. 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"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ModelParser.java

        /**
         * Locate and parse the model in the specified directory.
         * This is equivalent to {@code locate(dir).map(s -> parse(s, options))}.
         *
         * @param dir the directory to locate the pom for, never {@code null}
         * @param options possible parsing options, may be {@code null}
         * @return an optional parsed {@link Model} or {@code null} if none could be found
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Sep 10 17:18:47 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. docs/nl/docs/python-types.md

    ```
    
    ////
    
    #### Gebruik van `Union` of `Optional`
    
    Als je een Python versie lager dan 3.10 gebruikt, is dit een tip vanuit mijn **subjectieve** standpunt:
    
    * 🚨 Vermijd het gebruik van `Optional[EenType]`.
    * Gebruik in plaats daarvan **`Union[EenType, None]`** ✨.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/project/EmptyLifecycleBindingsInjector.java

            @Override
            public Iterator<Lifecycle> iterator() {
                return Collections.emptyIterator();
            }
    
            @Override
            public Optional<Lifecycle> lookup(String id) {
                return Optional.empty();
            }
    
            @Override
            public List<String> computePhases(Lifecycle lifecycle) {
                return List.of();
            }
        };
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. tests/test_serialize_response.py

    from typing import List, Optional
    
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: Optional[float] = None
        owner_ids: Optional[List[int]] = None
    
    
    @app.get("/items/valid", response_model=Item)
    def get_valid():
        return {"name": "valid", "price": 1.0}
    
    
    @app.get("/items/coerce", response_model=Item)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 03 12:29:07 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  9. tests/test_validate_response_dataclass.py

    from typing import List, 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():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/RangeSet.java

       */
      RangeSet<C> complement();
    
      /**
       * Returns a view of the intersection of this {@code RangeSet} with the specified range.
       *
       * <p>The returned view supports all optional operations supported by this {@code RangeSet}, with
       * the caveat that an {@link IllegalArgumentException} is thrown on an attempt to {@linkplain
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top