- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 593 for myinstance (0.05 seconds)
-
tests/test_jsonable_encoder.py
dt_field: safe_datetime instance = MyDict(dt_field=safe_datetime.now()) encoded_instance = jsonable_encoder( instance, custom_encoder={safe_datetime: lambda o: o.strftime("%H:%M:%S")} ) assert encoded_instance["dt_field"] == instance["dt_field"].strftime("%H:%M:%S") encoded_instance = jsonable_encoder( instance, custom_encoder={datetime: lambda o: o.strftime("%H:%M:%S")}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 9.2K bytes - Click Count (0) -
fastapi/openapi/utils.py
callback_flat_models: list[ModelField] = [] for route in routes: if getattr(route, "include_in_schema", None) and isinstance( route, routing.APIRoute ): if route.body_field: assert isinstance(route.body_field, ModelField), ( "A request body must be a Pydantic Field" )
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 23.2K bytes - Click Count (0) -
docs/en/docs/advanced/advanced-dependencies.md
But we want to be able to parameterize that fixed content. ## A "callable" instance { #a-callable-instance } In Python there's a way to make an instance of a class a "callable". Not the class itself (which is already a callable), but an instance of that class. To do that, we declare a method `__call__`: {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[12] *}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Nov 13 07:37:15 GMT 2025 - 9.1K bytes - Click Count (0) -
internal/grid/README.md
instance := grid.NewStream[*Payload, *Req, *Resp](h, newPayload, newReq, newResp) // Tweakable options instance.WithPayload = true // default true when newPayload != nil instance.OutCapacity = 1 // default instance.InCapacity = 1 // default true when newReq != nil // Register the handler on the manager instance.Register(manager, handler, "asubroute")
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Oct 10 18:57:03 GMT 2025 - 9.4K bytes - Click Count (0) -
docs/es/docs/advanced/advanced-dependencies.md
## Crear una instance { #create-an-instance } PodrĂamos crear una instance de esta clase con: {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[18] *} Y de esa manera podemos "parametrizar" nuestra dependencia, que ahora tiene `"bar"` dentro de ella, como el atributo `checker.fixed_content`. ## Usar la instance como una dependencia { #use-the-instance-as-a-dependency }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:33:45 GMT 2025 - 9.8K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeTest.java
afterExecutionFailure.incrementAndGet(); } }; assertSame(instance, scope.scope(Key.get(Object.class), () -> instance).get()); assertSame( instance, scope.scope(Key.get(WeakMojoExecutionListener.class), () -> instance) .get()); final MojoExecutionEvent event = new MojoExecutionEvent(null, null, null, null);
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 3.6K bytes - Click Count (0) -
tests/test_compat.py
field = v2.ModelField(name="items", field_info=field_info) result = v2.serialize_sequence_value(field=field, value=["a", "b", "c"]) assert result == ["a", "b", "c"] assert isinstance(result, list) @needs_py310 def test_serialize_sequence_value_with_optional_list_pipe_union(): """Test that serialize_sequence_value handles optional lists correctly (with new syntax)."""
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 4.2K bytes - Click Count (0) -
compat/maven-compat/src/main/resources/META-INF/maven/plugin-expressions/project.paramdoc.xml
<version>0.0.0.0</version> </parent> ]]></configuration> <description> This is the MavenProject instance for the parent of the current POM. </description> </expression> <expression> <syntax>project.file</syntax> <description> This is the File instance that refers to the location of the current POM on disk. </description> </expression> <expression>
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 5.6K bytes - Click Count (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/MonotonicClockTest.java
class MonotonicClockTest { @Test @DisplayName("MonotonicClock singleton instance should always return the same instance") void testSingletonInstance() { MonotonicClock clock1 = MonotonicClock.get(); MonotonicClock clock2 = MonotonicClock.get(); assertSame(clock1, clock2, "Multiple calls to get() should return the same instance"); } @TestCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jan 15 06:28:29 GMT 2025 - 5.8K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/filters/KotlinInternalFilter.groovy
boolean matches(CtClass ctClass) { return KotlinMetadataQueries.INSTANCE.isKotlinInternal(ctClass) } @Override boolean matches(CtField ctField) { return KotlinMetadataQueries.INSTANCE.isKotlinInternal(ctField) } @Override boolean matches(CtBehavior ctBehavior) { return KotlinMetadataQueries.INSTANCE.isKotlinInternal(ctBehavior) }
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 1.4K bytes - Click Count (0)