From c6435184e48c220f5abaec81afcf1731bdb4cad4 Mon Sep 17 00:00:00 2001 From: detailswes <97790157+Abishek-Newar@users.noreply.github.com> Date: Fri, 23 Jan 2026 18:28:45 +0530 Subject: [PATCH 1/2] fix: OpenFGA SDK doesn't seem to support async_req parameter --- openfga_sdk/client/client.py | 2 ++ openfga_sdk/sync/client/client.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/openfga_sdk/client/client.py b/openfga_sdk/client/client.py index aba8943..752e48a 100644 --- a/openfga_sdk/client/client.py +++ b/openfga_sdk/client/client.py @@ -120,6 +120,8 @@ def options_to_kwargs( kwargs["_headers"] = options["headers"] if options.get("retry_params"): kwargs["_retry_params"] = options["retry_params"] + if options.get("async_req") is not None: + kwargs["async_req"] = options["async_req"] return kwargs diff --git a/openfga_sdk/sync/client/client.py b/openfga_sdk/sync/client/client.py index 1efa33f..15cdd86 100644 --- a/openfga_sdk/sync/client/client.py +++ b/openfga_sdk/sync/client/client.py @@ -121,6 +121,8 @@ def options_to_kwargs( kwargs["_headers"] = options["headers"] if options.get("retry_params"): kwargs["_retry_params"] = options["retry_params"] + if options.get("async_req") is not None: + kwargs["async_req"] = options["async_req"] return kwargs From c6b496fdc8b33f008301060e78f77e617bfbca25 Mon Sep 17 00:00:00 2001 From: detailswes <97790157+Abishek-Newar@users.noreply.github.com> Date: Fri, 23 Jan 2026 18:39:11 +0530 Subject: [PATCH 2/2] fixed teh coderabbit mentioned issue --- openfga_sdk/client/client.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/openfga_sdk/client/client.py b/openfga_sdk/client/client.py index 752e48a..aba8943 100644 --- a/openfga_sdk/client/client.py +++ b/openfga_sdk/client/client.py @@ -120,8 +120,6 @@ def options_to_kwargs( kwargs["_headers"] = options["headers"] if options.get("retry_params"): kwargs["_retry_params"] = options["retry_params"] - if options.get("async_req") is not None: - kwargs["async_req"] = options["async_req"] return kwargs