Skip to content

Commit ef4e2f9

Browse files
committed
Try to fix type annotations
1 parent 5a46b75 commit ef4e2f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: pgjobq/types.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import annotations
22

3-
import asyncpg # type: ignore
3+
from typing import Union
44

5-
PoolOrConnection = asyncpg.Pool | asyncpg.Connection
5+
from asyncpg import Connection, Pool # type: ignore
6+
7+
PoolOrConnection = Union[Pool, Connection]

0 commit comments

Comments
 (0)