Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,442 for wouldn (0.21 sec)

  1. android/guava/src/com/google/common/reflect/TypeParameter.java

     * @since 12.0
     */
    @ElementTypesAreNonnullByDefault
    /*
     * A nullable bound would let users create a TypeParameter instance for a parameter with a nullable
     * bound. However, it would also let them create `new TypeParameter<@Nullable T>() {}`, which
     * wouldn't behave as users might expect. Additionally, it's not clear how the TypeToken API could
     * support even a "normal" `TypeParameter<T>` when `<T>` has a nullable bound. (See the discussion
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/encoder.md

    For example, it doesn't receive `datetime` objects, as those are not compatible with JSON.
    
    So, a `datetime` object would have to be converted to a `str` containing the data in <a href="https://en.wikipedia.org/wiki/ISO_8601" class="external-link" target="_blank">ISO format</a>.
    
    The same way, this database wouldn't receive a Pydantic model (an object with attributes), only a `dict`.
    
    You can use `jsonable_encoder` for that.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  3. docs/en/docs/benchmarks.md

    * **Uvicorn**:
        * Will have the best performance, as it doesn't have much extra code apart from the server itself.
        * You wouldn't write an application in Uvicorn directly. That would mean that your code would have to include more or less, at least, all the code provided by Starlette (or **FastAPI**). And if you did that, your final application would have the same overhead as having used a framework and minimizing your app code and bugs.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectSegment.java

     * into TaskSegments. This class represents the execution context of one such task segment.
     * </p>
     * <p>
     * Wise voices have suggested that maybe aggregators shouldn't be bound to the ordinary
     * lifecycle at all, in which case we wouldn't be needing this class at all ( and
     * ProjectBuildList.getByTaskSegments). Or maybe they should be introduced in the calculation
     * of the execution plan instead, which seems much nicer.
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  5. fastapi/datastructures.py

                    """
                    The bytes to write to the file.
                    """
                ),
            ],
        ) -> None:
            """
            Write some bytes to the file.
    
            You normally wouldn't use this from a file you read in a request.
    
            To be awaitable, compatible with async, this is run in threadpool.
            """
            return await super().write(data)
    
        async def read(
            self,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  6. maven-core/src/site/apt/getting-to-container-configured-mojos.apt

      traversing an object graph and extracting Object values, not just Strings.
    
    * ComponentConfigurator
    
      Currently, the container uses BasicComponentConfigurator, to configure
      components. This wouldn't be a problem, except for the local instance of
      DefaultExpressionEvaluator used within. See the above discussion for more
      on why this evaluator is bad. We need to provide either an alternative
    Plain Text
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Jan 30 15:20:35 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/collect/MapBenchmark.java

      boolean iterateValuesAndGet(int reps) {
        Map<Element, Element> map = mapToTest;
    
        boolean dummy = false;
        for (int i = 0; i < reps; i++) {
          for (Element key : map.values()) {
            // This normally wouldn't make sense, but because our keys are our values it kind of does
            Element value = map.get(key);
            dummy ^= key != value;
          }
        }
        return dummy;
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  8. docs/en/docs/alternatives.md

    The way you use it is very simple. For example, to do a `GET` request, you would write:
    
    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    The FastAPI counterpart API *path operation* could look like:
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
        return {"message": "Hello World"}
    ```
    
    See the similarities in `requests.get(...)` and `@app.get(...)`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

          super(message);
        }
    
        @Override
        public synchronized Throwable fillInStackTrace() {
          setStackTrace(new StackTraceElement[0]);
          return this; // no stack trace, wouldn't be useful anyway
        }
      }
    
      @Override
      @CheckForNull
      protected String pendingToString() {
        ListenableFuture<? extends V> localInputFuture = delegateRef;
        ScheduledFuture<?> localTimer = timer;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/ResourcesTest.java

    import java.util.List;
    import junit.framework.TestSuite;
    
    /**
     * Unit test for {@link Resources}.
     *
     * @author Chris Nokleberg
     */
    
    public class ResourcesTest extends IoTestCase {
    
      @AndroidIncompatible // wouldn't run anyway, but strip the source entirely because of b/230620681
      public static TestSuite suite() {
        TestSuite suite = new TestSuite();
        suite.addTest(
            ByteSourceTester.tests(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.8K bytes
    - Viewed (0)
Back to top