Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 185 for asSubclass (0.07 seconds)

  1. fastapi/_compat/v2.py

            for union_arg in union_args:
                if union_arg is type(None):
                    continue
                origin_type = get_origin(union_arg) or union_arg
                break
        assert issubclass(origin_type, shared.sequence_types)  # type: ignore[arg-type]
        return shared.sequence_annotation_to_type[origin_type](value)  # type: ignore[no-any-return,index]
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 16.7K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

        }
      }
    
      /*
       * TODO(cpovirk): surely we can find a less ugly solution than a class that accepts 3 parameters,
       * exposes as many getters, does work in the constructor, and has both a superclass and a subclass
       */
      public static class SortedMapSubmapTestMapGenerator<
              K extends @Nullable Object, V extends @Nullable Object>
          extends ForwardingTestMapGenerator<K, V> implements TestSortedMapGenerator<K, V> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 30 16:59:10 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

        }
      }
    
      /*
       * TODO(cpovirk): surely we can find a less ugly solution than a class that accepts 3 parameters,
       * exposes as many getters, does work in the constructor, and has both a superclass and a subclass
       */
      public static class SortedMapSubmapTestMapGenerator<
              K extends @Nullable Object, V extends @Nullable Object>
          extends ForwardingTestMapGenerator<K, V> implements TestSortedMapGenerator<K, V> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 30 16:59:10 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  4. tests/test_generate_unique_id_function.py

            warnings.simplefilter("always")
            client.get("/openapi.json")
            assert len(w) >= 2
            duplicate_warnings = [
                warning for warning in w if issubclass(warning.category, UserWarning)
            ]
            assert len(duplicate_warnings) > 0
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 75K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/exception/DataStoreCrawlingExceptionTest.java

            assertEquals(error, exception.getCause());
            assertFalse(exception.aborted());
        }
    
        @Test
        public void test_constructorWithThrowableCause_LinkageError() {
            // Test with LinkageError subclass
            String url = "http://example.com/data";
            String message = "Class loading error during crawling";
            NoClassDefFoundError error = new NoClassDefFoundError("Parser class not found");
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 16.6K bytes
    - Click Count (0)
  6. docs/en/docs/advanced/security/oauth2-scopes.md

    ///
    
    {* ../../docs_src/security/tutorial005_an_py310.py hl[5,141,172] *}
    
    /// info | Technical Details
    
    `Security` is actually a subclass of `Depends`, and it has just one extra parameter that we'll see later.
    
    But by using `Security` instead of `Depends`, **FastAPI** will know that it can declare security scopes, use them internally, and document the API with OpenAPI.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 13.4K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

         * to be passed to the readXxxWireFormat methods. This is
         * actually purer. However, in the case of smb we know the
         * wordCount and byteCount. And since every subclass of
         * ServerMessageBlock would have to perform the same read
         * operation on the input stream, we might as will pull that
         * common functionality into the superclass and read wordCount
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 19.7K bytes
    - Click Count (0)
  8. docs/en/docs/_llm-test.md

    * to handle
    
    * the model
    * the Pydantic model
    * the data model
    * the database model
    * the form model
    * the model object
    
    * the class
    * the base class
    * the parent class
    * the subclass
    * the child class
    * the sibling class
    * the class method
    
    * the header
    * the headers
    * the authorization header
    * the `Authorization` header
    * the forwarded header
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  9. docs/tr/docs/tutorial/response-model.md

    Araçlar da memnun olur; çünkü hem `RedirectResponse` hem `JSONResponse`, `Response`’un subclass’ıdır. Yani type annotation doğrudur.
    
    ### Bir Response Subclass’ını Annotate Etmek { #annotate-a-response-subclass }
    
    Type annotation içinde `Response`’un bir subclass’ını da kullanabilirsiniz:
    
    {* ../../docs_src/response_model/tutorial003_03_py310.py hl[8:9] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 17K bytes
    - Click Count (0)
  10. docs/uk/docs/tutorial/response-model.md

    І інструменти також будуть задоволені, бо і `RedirectResponse`, і `JSONResponse` є підкласами `Response`, отже анотація типу коректна.
    
    ### Анотувати підклас Response { #annotate-a-response-subclass }
    
    Ви також можете використати підклас `Response` в анотації типу:
    
    {* ../../docs_src/response_model/tutorial003_03_py310.py hl[8:9] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 25.2K bytes
    - Click Count (0)
Back to Top