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

Commit f091482

Browse files
committed
fix: quote WeakKeyDictionary typing for python<=3.7
1 parent 0f93807 commit f091482

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

databases/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535

3636
logger = logging.getLogger("databases")
3737

38+
3839
_ACTIVE_CONNECTIONS: ContextVar[
39-
typing.Optional[weakref.WeakKeyDictionary["Database", "Connection"]]
40+
typing.Optional["weakref.WeakKeyDictionary['Database', 'Connection']"]
4041
] = ContextVar("databases:open_connections", default=None)
41-
4242
_ACTIVE_TRANSACTIONS: ContextVar[
43-
typing.Optional[weakref.WeakKeyDictionary["Transaction", "TransactionBackend"]]
43+
typing.Optional["weakref.WeakKeyDictionary['Transaction', 'TransactionBackend']"]
4444
] = ContextVar("databases:open_transactions", default=None)
4545

4646

0 commit comments

Comments
 (0)