Skip to content

Commit 7ecc615

Browse files
authored
fix: Fix the mypy type check issue. (feast-dev#4498)
Signed-off-by: Shuchu Han <shuchu.han@gmail.com>
1 parent d793c77 commit 7ecc615

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sdk/python/feast/infra/utils/postgres/connection_utils.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ async def _get_connection_pool_async(config: PostgreSQLConfig) -> AsyncConnectio
5656

5757
def _get_conninfo(config: PostgreSQLConfig) -> str:
5858
"""Get the `conninfo` argument required for connection objects."""
59-
psycopg_config = {
60-
"user": config.user,
61-
"password": config.password,
62-
"host": config.host,
63-
"port": int(config.port),
64-
"dbname": config.database,
65-
}
66-
return make_conninfo(conninfo="", **psycopg_config)
59+
return make_conninfo(
60+
conninfo="",
61+
user=config.user,
62+
password=config.password,
63+
host=config.host,
64+
port=int(config.port),
65+
dbname=config.database,
66+
)
6767

6868

6969
def _get_conn_kwargs(config: PostgreSQLConfig) -> Dict[str, Any]:

0 commit comments

Comments
 (0)