Skip to content

Commit fc6583e

Browse files
author
Himanshu Singh
committed
fix: rename Branch A cluster_kwargs to avoid mypy no-redef with Branch B
Signed-off-by: Himanshu Singh <himanshu.singh@walmart.com>
1 parent 6ed2c5d commit fc6583e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sdk/python/feast/infra/online_stores/cassandra_online_store/cassandra_online_store.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ def _get_session(self, config: RepoConfig):
514514
lb_execution_profiles = None
515515

516516
# additional optional keyword args to Cluster
517-
cluster_kwargs: Dict[str, Any] = {
517+
branch_a_kwargs: Dict[str, Any] = {
518518
k: v
519519
for k, v in {
520520
"protocol_version": protocol_version,
@@ -526,14 +526,14 @@ def _get_session(self, config: RepoConfig):
526526
# creation of Cluster (Cassandra vs. Astra)
527527
if hosts:
528528
self._cluster = Cluster(
529-
hosts, port=port, auth_provider=auth_provider, **cluster_kwargs
529+
hosts, port=port, auth_provider=auth_provider, **branch_a_kwargs
530530
)
531531
else:
532532
# we use 'secure_bundle_path'
533533
self._cluster = Cluster(
534534
cloud={"secure_connect_bundle": secure_bundle_path},
535535
auth_provider=auth_provider,
536-
**cluster_kwargs,
536+
**branch_a_kwargs,
537537
)
538538

539539
# creation of Session

0 commit comments

Comments
 (0)