Skip to content

Commit 92ddd00

Browse files
committed
k
1 parent 010e42d commit 92ddd00

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/ee/onyx/server/tenants/product_gating.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from typing import cast
2+
13
from ee.onyx.configs.app_configs import GATED_TENANTS_KEY
24
from onyx.configs.constants import ONYX_CLOUD_TENANT_ID
35
from onyx.redis.redis_pool import get_redis_replica_client
@@ -45,4 +47,4 @@ def store_product_gating(tenant_id: str, application_status: ApplicationStatus)
4547

4648
def get_gated_tenants() -> set[str]:
4749
redis_client = get_redis_replica_client(tenant_id=ONYX_CLOUD_TENANT_ID)
48-
return set(redis_client.smembers(GATED_TENANTS_KEY))
50+
return cast(set[str], redis_client.smembers(GATED_TENANTS_KEY))

0 commit comments

Comments
 (0)