Skip to content

Commit

Permalink
chore: remove optional annotation on asyncio.Task
Browse files Browse the repository at this point in the history
  • Loading branch information
zevisert committed Apr 18, 2023
1 parent 16403c3 commit 8370299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion databases/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(
self._backend = backend_cls(self.url, **self.options)

# Connections are stored per asyncio task
self._connections: typing.Dict[typing.Optional[asyncio.Task], Connection] = {}
self._connections: typing.Dict[asyncio.Task, Connection] = {}

# When `force_rollback=True` is used, we use a single global
# connection, within a transaction that always rolls back.
Expand Down

0 comments on commit 8370299

Please sign in to comment.