Skip to content

Commit c4ccdb4

Browse files
committed
fix: use Optional for forward compatibility with Python 3.9
1 parent 106ae2c commit c4ccdb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pgmq_sqlalchemy/queue.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ class PGMQueue:
2828

2929
def __init__(
3030
self,
31-
dsn: str | None = None,
32-
engine: ENGINE_TYPE | None = None,
33-
session_maker: sessionmaker | None = None,
31+
dsn: Optional[str] = None,
32+
engine: Optional[ENGINE_TYPE] = None,
33+
session_maker: Optional[sessionmaker] = None,
3434
) -> None:
3535
"""
3636

0 commit comments

Comments
 (0)