- Sort Score
- Num 10 results
- Language All
Results 211 - 220 of 594 for PASS (0.03 seconds)
-
fastapi/.agents/skills/fastapi/SKILL.md
[tool.fastapi] entrypoint = "my_app.main:app" ``` ### Use `fastapi` with a path When adding the entrypoint to `pyproject.toml` is not possible, or the user explicitly asks not to, or it's running an independent small app, you can pass the app file path to the `fastapi` command: ```bash fastapi dev my_app/main.py ``` Prefer to set the entrypoint in `pyproject.toml` when possible. ## Use `Annotated`
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 10.1K bytes - Click Count (0) -
docs/en/docs/python-types.md
* The variable `items_t` is a `tuple` with 3 items, an `int`, another `int`, and a `str`. * The variable `items_s` is a `set`, and each of its items is of type `bytes`. #### Dict { #dict } To define a `dict`, you pass 2 type parameters, separated by commas. The first type parameter is for the keys of the `dict`. The second type parameter is for the values of the `dict`:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 11K bytes - Click Count (0) -
docs/en/docs/tutorial/body-updates.md
{* ../../docs_src/body_updates/tutorial002_py310.py hl[32] *} ### Using Pydantic's `update` parameter { #using-pydantics-update-parameter } Now, you can create a copy of the existing model using `.model_copy()`, and pass the `update` parameter with a `dict` containing the data to update. Like `stored_item_model.model_copy(update=update_data)`: {* ../../docs_src/body_updates/tutorial002_py310.py hl[33] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 4K bytes - Click Count (0) -
cmd/erasure_test.go
err = erasure.DecodeDataBlocks(encoded) } if err == nil && test.shouldFail { t.Errorf("Test %d: test should fail but it passed", i) } if err != nil && !test.shouldFail { t.Errorf("Test %d: test should pass but it failed: %v", i, err) } decoded := encoded if !test.shouldFail { if test.reconstructParity { for j := range decoded { if decoded[j] == nil {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 4.8K bytes - Click Count (0) -
guava/src/com/google/common/base/Converter.java
* create a "fake" converter for a unit test. It is unnecessary (and confusing) to <i>mock</i> * the {@code Converter} type using a mocking framework. * <li>Pass two lambda expressions or method references to the {@link #from from} factory method. * <li>Extend this class and implement its {@link #doForward} and {@link #doBackward} methods. * </ul> * * <p>Using a converter: *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 18 21:43:06 GMT 2025 - 22.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java
} public void testNulls() { /* * Don't bother testing. All non-primitive parameters are used only to construct error messages. * We never want to pass null for them, so we haven't annotated them to say that null is * allowed. But at the same time, it seems wasteful to bother inserting the checkNotNull calls * that NullPointerTester wants. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 8.1K bytes - Click Count (0) -
compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/logging/Log.java
* <code>java.lang.CharSequence</code> rather than <code>java.lang.String</code>. This is provided mainly as a * convenience, to enable developers to pass things like <code>java.lang.StringBuffer</code> directly into the logger, * rather than formatting first by calling <code>toString()</code>. * * * @deprecated Use SLF4J directly */ @Deprecated
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 4.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/filter/LoadControlFilterTest.java
for (String uri : imageUris) { resetMocks(); mockRequest.setRequestURI(uri); testableFilter.doFilter(mockRequest, mockResponse, mockFilterChain); assertTrue("Expected pass-through for: " + uri, mockFilterChain.wasDoFilterCalled()); } } @Test public void test_doFilter_fontExcluded() throws IOException, ServletException { setConfig(10, 10);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 21 06:04:58 GMT 2026 - 33.6K bytes - Click Count (0) -
internal/http/server.go
return srv } // UseHandler configure final handler for this HTTP *Server func (srv *Server) UseHandler(h http.Handler) *Server { srv.Handler = h return srv } // UseTLSConfig pass configured TLSConfig for this HTTP *Server func (srv *Server) UseTLSConfig(cfg *tls.Config) *Server { srv.TLSConfig = cfg return srv } // UseBaseContext use custom base context for this HTTP *Server
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 6.5K bytes - Click Count (0) -
docs/en/docs/tutorial/server-sent-events.md
Import `ServerSentEvent` from `fastapi.sse`: {* ../../docs_src/server_sent_events/tutorial002_py310.py hl[4,26] *} The `data` field is always encoded as JSON. You can pass any value that can be serialized as JSON, including Pydantic models. ## Raw Data { #raw-data } If you need to send data **without** JSON encoding, use `raw_data` instead of `data`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 4.6K bytes - Click Count (0)