- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for issubclass (0.04 sec)
-
fastapi/_compat/shared.py
# Copy of Pydantic v2, compatible with v1 def lenient_issubclass( cls: Any, class_or_tuple: Union[type[Any], tuple[type[Any], ...], None] ) -> bool: try: return isinstance(cls, type) and issubclass(cls, class_or_tuple) # type: ignore[arg-type] except TypeError: # pragma: no cover if isinstance(cls, WithArgsTypes): return False raise # pragma: no cover
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 6.7K bytes - Viewed (0) -
tests/test_generate_unique_id_function.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 66.7K bytes - Viewed (0) -
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]Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 19.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/SubtypeTester.java
// The raw class isn't even a subclass. } } if (!spec.suppressGetSupertype()) { try { assertThat(getSupertype(paramType, TypeToken.of(returnType).getRawType())) .isNotEqualTo(returnType); } catch (IllegalArgumentException notSubtype2) { // The raw class isn't even a subclass. } } return null; }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Nov 25 23:29:58 UTC 2025 - 6.2K bytes - Viewed (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:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 15.5K bytes - Viewed (0) -
docs/en/docs/how-to/custom-request-and-route.md
* Automatically logging all request bodies. ## Handling custom request body encodings { #handling-custom-request-body-encodings } Let's see how to make use of a custom `Request` subclass to decompress gzip requests. And an `APIRoute` subclass to use that custom request class. ### Create a custom `GzipRequest` class { #create-a-custom-gziprequest-class } /// tipRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 08:55:32 UTC 2025 - 4.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/SubtypeTester.java
// The raw class isn't even a subclass. } } if (!spec.suppressGetSupertype()) { try { assertThat(getSupertype(paramType, TypeToken.of(returnType).getRawType())) .isNotEqualTo(returnType); } catch (IllegalArgumentException notSubtype2) { // The raw class isn't even a subclass. } } return null; }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Nov 25 23:29:58 UTC 2025 - 6.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/RequestBody.kt
/** * A duplex request body is special in how it is **transmitted** on the network and * in the **API contract** between OkHttp and the application. * * This method returns false unless it is overridden by a subclass. * * ### Duplex Transmission * * With regular HTTP calls the request always completes sending before the response may begin
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Oct 07 14:16:29 UTC 2025 - 9.3K bytes - Viewed (0) -
fastapi/security/open_id_connect_url.py
**Warning**: this is only a stub to connect the components with OpenAPI in FastAPI, but it doesn't implement the full OpenIdConnect scheme, for example, it doesn't use the OpenIDConnect URL. You would need to to subclass it and implement it in your code. """ def __init__( self, *, openIdConnectUrl: Annotated[ str, Doc( """Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 3.1K bytes - Viewed (0) -
docs/en/docs/how-to/authentication-error-status-code.md
But if for some reason your clients depend on the old behavior, you can revert to it by overriding the method `make_not_authenticated_error` in your security classes. For example, you can create a subclass of `HTTPBearer` that returns a `403 Forbidden` error instead of the default `401 Unauthorized` error: {* ../../docs_src/authentication_error_status_code/tutorial001_an_py39.py hl[9:13] *} /// tipRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 24 19:03:06 UTC 2025 - 1.3K bytes - Viewed (0)