- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 67 for Closed (0.61 sec)
-
.github/workflows/issue-manager.yml
Others - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Jan 30 18:46:56 GMT 2024 - 1.1K bytes - Viewed (0) -
.github/workflows/notify-translations.yml
name: Notify Translations on: pull_request_target: types: - labeled - closed workflow_dispatch: inputs: number: description: PR number required: true debug_enabled: description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' required: false default: 'false' jobs: notify-translations:
Others - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Oct 17 07:19:41 GMT 2023 - 1022 bytes - Viewed (0) -
tests/test_datastructures.py
def test_default_placeholder_bool(): placeholder_a = Default("a") placeholder_b = Default("") assert placeholder_a assert not placeholder_b def test_upload_file_is_closed(tmp_path: Path): path = tmp_path / "test.txt" path.write_bytes(b"<file content>") app = FastAPI() testing_file_store: List[UploadFile] = [] @app.post("/uploadfile/")
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Oct 18 12:36:40 GMT 2023 - 2K bytes - Viewed (0) -
docs/en/docs/tutorial/sql-databases.md
``` !!! info We put the creation of the `SessionLocal()` and handling of the requests in a `try` block. And then we close it in the `finally` block. This way we make sure the database session is always closed after the request. Even if there was an exception while processing the request.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 29.6K bytes - Viewed (0) -
docs_src/sql_databases_peewee/sql_app/main.py
database.db.create_tables([models.User, models.Item]) database.db.close() app = FastAPI() sleep_time = 10 async def reset_db_state(): database.db._state._state.set(db_state_default.copy()) database.db._state.reset() def get_db(db_state=Depends(reset_db_state)): try: database.db.connect() yield finally: if not database.db.is_closed(): database.db.close()
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 2.2K bytes - Viewed (0) -
docs/en/docs/advanced/custom-response.md
{!../../../docs_src/custom_response/tutorial008.py!} ``` 1. This is the generator function. It's a "generator function" because it contains `yield` statements inside. 2. By using a `with` block, we make sure that the file-like object is closed after the generator function is done. So, after it finishes sending the response.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.7K bytes - Viewed (0) -
docs_src/sql_databases_peewee/sql_app/database.py
from contextvars import ContextVar import peewee DATABASE_NAME = "test.db" db_state_default = {"closed": None, "conn": None, "ctx": None, "transactions": None} db_state = ContextVar("db_state", default=db_state_default.copy()) class PeeweeConnectionState(peewee._ConnectionState): def __init__(self, **kwargs): super().__setattr__("_state", db_state) super().__init__(**kwargs) def __setattr__(self, name, value):
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 662 bytes - Viewed (0) -
.github/workflows/latest-changes.yml
name: Latest Changes on: pull_request_target: branches: - master types: - closed workflow_dispatch: inputs: number: description: PR number required: true debug_enabled: description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' required: false default: 'false' jobs: latest-changes:
Others - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Jan 09 14:57:33 GMT 2024 - 1.4K bytes - Viewed (0) -
docs/en/docs/advanced/websockets.md
With that you can connect the WebSocket and then send and receive messages: <img src="/img/tutorial/websockets/image05.png"> ## Handling disconnections and multiple clients When a WebSocket connection is closed, the `await websocket.receive_text()` will raise a `WebSocketDisconnect` exception, which you can then catch and handle like in this example. === "Python 3.9+" ```Python hl_lines="79-81"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 6.2K bytes - Viewed (0) -
.github/actions/notify-translations/app/main.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Sep 27 23:01:46 GMT 2023 - 12.4K bytes - Viewed (0)