Skip to content

Commit

Permalink
fix: Fix the mypy type check issue. (#4498)
Browse files Browse the repository at this point in the history
Signed-off-by: Shuchu Han <[email protected]>
  • Loading branch information
shuchu authored Sep 8, 2024
1 parent d793c77 commit 7ecc615
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions sdk/python/feast/infra/utils/postgres/connection_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ async def _get_connection_pool_async(config: PostgreSQLConfig) -> AsyncConnectio

def _get_conninfo(config: PostgreSQLConfig) -> str:
"""Get the `conninfo` argument required for connection objects."""
psycopg_config = {
"user": config.user,
"password": config.password,
"host": config.host,
"port": int(config.port),
"dbname": config.database,
}
return make_conninfo(conninfo="", **psycopg_config)
return make_conninfo(
conninfo="",
user=config.user,
password=config.password,
host=config.host,
port=int(config.port),
dbname=config.database,
)


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

0 comments on commit 7ecc615

Please sign in to comment.