- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 93 for issubclass (0.51 seconds)
-
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) -
android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java
public void testSubtypeOfInnerClass_nonStaticAnonymousClass() { TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; Class<?> subclass = new Mall<Outdoor>().new Shop<Electronics>() {}.getClass(); assertTrue(TypeToken.of(subclass).isSubtypeOf(supertype)); } @SuppressWarnings("RestrictedApiChecker") // crashes under JDK8, which EP no longer supports
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 20.4K bytes - Click Count (0) -
docs/en/docs/tutorial/response-model.md
And tools will also be happy because both `RedirectResponse` and `JSONResponse` are subclasses of `Response`, so the type annotation is correct. ### Annotate a Response Subclass { #annotate-a-response-subclass } You can also use a subclass of `Response` in the type annotation:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 15.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/UserRoleLoginExceptionTest.java
public class UserRoleLoginExceptionTest extends UnitFessTestCase { // Mock subclass of RootAction for testing generic type safety private static class TestAction extends RootAction { // Test subclass } // Another mock subclass for testing private static class AdminAction extends RootAction { // Test admin subclass } @Test public void test_constructor() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java
public void testSubtypeOfInnerClass_nonStaticAnonymousClass() { TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {}; Class<?> subclass = new Mall<Outdoor>().new Shop<Electronics>() {}.getClass(); assertTrue(TypeToken.of(subclass).isSubtypeOf(supertype)); } @SuppressWarnings("RestrictedApiChecker") // crashes under JDK8, which EP no longer supports
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 20.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ForwardingMap.java
* {@link ForwardingMap#entrySet}. In many cases, you may wish to override {@link * ForwardingMap#keySet} to forward to this implementation or a subclass thereof. * * @since 10.0 */ protected class StandardKeySet extends Maps.KeySet<K, V> { /** Constructor for use by subclasses. */ public StandardKeySet() { super(ForwardingMap.this);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 17:32:30 GMT 2025 - 9.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/ForwardingMap.java
* {@link ForwardingMap#entrySet}. In many cases, you may wish to override {@link * ForwardingMap#keySet} to forward to this implementation or a subclass thereof. * * @since 10.0 */ protected class StandardKeySet extends Maps.KeySet<K, V> { /** Constructor for use by subclasses. */ public StandardKeySet() { super(ForwardingMap.this);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 17:32:30 GMT 2025 - 9.8K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java
public void remove() { throw new IllegalStateException() { /* subclass */ }; } @Override public Integer next() { throw new NoSuchElementException() { /* subclass */ }; } @Override public boolean hasNext() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 10.3K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AggregateFuture.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 16K bytes - Click Count (0) -
guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java
public void remove() { throw new IllegalStateException() { /* subclass */ }; } @Override public Integer next() { throw new NoSuchElementException() { /* subclass */ }; } @Override public boolean hasNext() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 10.3K bytes - Click Count (0)