Skip to content

Commit 0db6fec

Browse files
committed
Pass an empty conninfo to make_conninfo()
This is to please Mypy and Psycopg 3.2.
1 parent 55569f3 commit 0db6fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgactivity/pg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def connect(dsn: str = "", **kwargs: Any) -> Connection:
4949
# This is (more or less) what's done by psql.
5050
conninfo = conninfo_to_dict(dsn)
5151
conninfo.setdefault("client_encoding", "auto")
52-
dsn = make_conninfo(**conninfo)
52+
dsn = make_conninfo("", **conninfo)
5353
conn = psycopg.connect(dsn, autocommit=True, row_factory=dict_row, **kwargs)
5454
if conn.info.encoding == "ascii":
5555
# If client encoding is still 'ascii', fall back to a loader with a replace

0 commit comments

Comments
 (0)