Skip to content

Commit 9ceb4ab

Browse files
committed
tweak
1 parent f260820 commit 9ceb4ab

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

posthog/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def get_decide(self, distinct_id, groups=None, person_properties=None, group_pro
206206

207207
return resp_data
208208

209-
def get_remote_config_payload(self, flag_id):
209+
def get_remote_config_payload(self, flag_id: str):
210210
resp_data = remote_config(
211211
self.personal_api_key,
212212
self.host,
@@ -820,7 +820,7 @@ def get_feature_flag_payload(
820820

821821
return payload
822822

823-
def get_decrypted_feature_flag_payload(self, flag_id):
823+
def get_decrypted_feature_flag_payload(self, flag_id: str):
824824
if self.disabled:
825825
return None
826826

posthog/request.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ def decide(api_key: str, host: Optional[str] = None, gzip: bool = False, timeout
8181
return _process_response(res, success_message="Feature flags decided successfully")
8282

8383
def remote_config(api_key: str, host: Optional[str] = None, flag_id: str = "", timeout: int = 15) -> Any:
84-
res = get(api_key, host, f"/api/projects/@current/feature_flags/{flag_id}/remote_config/", timeout)
85-
return _process_response(res, success_message="Feature flags decided successfully")
84+
"""Get remote config flag value from remote_config API endpoint"""
85+
res = get(api_key, f"/api/projects/@current/feature_flags/{flag_id}/remote_config/", host, timeout)
86+
return _process_response(res, success_message="Remote config payload fetched successfully")
8687

8788
def batch_post(
8889
api_key: str, host: Optional[str] = None, gzip: bool = False, timeout: int = 15, **kwargs

0 commit comments

Comments
 (0)