Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Commit 460f72e

Browse files
committed
docs: update comment on _connection_contextmap
1 parent a38e135 commit 460f72e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

databases/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
logger = logging.getLogger("databases")
3737

3838
# Connections are stored as task-local state, but care must be taken to ensure
39-
# that two database instances in the same task overwrite each other's connections.
40-
# For this reason, key comprises the database instance and the current task.
39+
# that two database instances in the same task do not overwrite each other's connections.
40+
# For this reason, the dict key comprises the database instance and the current task.
4141
_connection_contextmap: ContextVar[
4242
Dict[Tuple["Database", asyncio.Task], "Connection"]
4343
] = ContextVar("databases:Connection")

0 commit comments

Comments
 (0)