- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 66 for sure (0.01 sec)
-
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
In the same way, you can use `finally` to make sure the exit steps are executed, no matter if there was an exception or not. {* ../../docs_src/dependencies/tutorial007_py39.py hl[3,5] *} ## Sub-dependencies with `yield` { #sub-dependencies-with-yield } You can have sub-dependencies and "trees" of sub-dependencies of any size and shape, and any or all of them can use `yield`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 12.9K bytes - Viewed (0) -
docs/en/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md
You can read it to understand better what has changed. ## Tests { #tests } Make sure you have [tests](../tutorial/testing.md){.internal-link target=_blank} for your app and you run them on continuous integration (CI). This way, you can do the upgrade and make sure everything is still working as expected. ## `bump-pydantic` { #bump-pydantic }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 5.5K bytes - Viewed (0) -
tests/test_compat.py
# to be read from files and other types, but I'm not even sure it's a good idea # to support it as a first class "feature" assert is_bytes_sequence_annotation(Union[list[str], list[bytes]]) def test_is_uploadfile_sequence_annotation(): # For coverage # TODO: in theory this would allow declaring types that could be lists of UploadFile # and other types, but I'm not even sure it's a good idea to support it as a first
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 4.2K bytes - Viewed (0) -
docs/en/docs/advanced/path-operation-advanced-configuration.md
/// warning If you are not an "expert" in OpenAPI, you probably don't need this. /// You can set the OpenAPI `operationId` to be used in your *path operation* with the parameter `operation_id`. You would have to make sure that it is unique for each operation. {* ../../docs_src/path_operation_advanced_configuration/tutorial001_py39.py hl[6] *}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 7.2K bytes - Viewed (0) -
docs/en/docs/advanced/response-cookies.md
/// tip Keep in mind that if you return a response directly instead of using the `Response` parameter, FastAPI will return it directly. So, you will have to make sure your data is of the correct type. E.g. it is compatible with JSON, if you are returning a `JSONResponse`. And also that you are not sending any data that should have been filtered by a `response_model`. ///
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 2.3K bytes - Viewed (0) -
docs/en/docs/tutorial/testing.md
## Using `TestClient` { #using-testclient } /// info To use `TestClient`, first install <a href="https://www.python-httpx.org" class="external-link" target="_blank">`httpx`</a>. Make sure you create a [virtual environment](../virtual-environments.md){.internal-link target=_blank}, activate it, and then install it, for example: ```console $ pip install httpx ``` /// Import `TestClient`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.1K bytes - Viewed (0) -
docs/en/docs/virtual-environments.md
* Manage the **virtual environment** for your projects * Install **packages** * Manage package **dependencies and versions** for your project * Make sure you have an **exact** set of packages and versions to install, including their dependencies, so that you can be sure that you can run your project in production exactly the same as in your computer while developing, this is called **locking** * And many other things
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 02 05:09:25 UTC 2025 - 22.8K bytes - Viewed (0) -
docs/en/docs/advanced/templates.md
There are utilities to configure it easily that you can use directly in your **FastAPI** application (provided by Starlette). ## Install dependencies { #install-dependencies } Make sure you create a [virtual environment](../virtual-environments.md){.internal-link target=_blank}, activate it, and install `jinja2`: <div class="termy"> ```console $ pip install jinja2 ---> 100% ``` </div>
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 3.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java
// Wait for the listeners to be called, don't rely on the same-thread exec. listenerLatch.await(5, SECONDS); assertTrue(task.isDone()); assertTrue(task.isCancelled()); // Make sure we didn't run anything. assertEquals(1, runLatch.getCount()); } public void testListenerCalledOnCancelFromRunning() throws Exception { exec.execute(task); runLatch.await();Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 21:00:51 UTC 2025 - 4.8K bytes - Viewed (0) -
docs/en/docs/how-to/conditional-openapi.md
If you want to secure your API, there are several better things you can do, for example: * Make sure you have well defined Pydantic models for your request bodies and responses. * Configure any required permissions and roles using dependencies. * Never store plaintext passwords, only password hashes.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 2.4K bytes - Viewed (0)