Skip to content

Commit e3ee809

Browse files
nicklaslclaude
andcommitted
fix(python): add type annotations for sdk parameter
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9534b78 commit e3ee809

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

openfeature-provider/python/src/confidence/local_resolver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ def _reload_instance(self, error: BaseException) -> None:
7777
except Exception as e:
7878
logger.error("Failed to restore state after reload: %s", e)
7979

80-
def set_resolver_state(self, state: bytes, account_id: str, sdk=None) -> None:
80+
def set_resolver_state(
81+
self, state: bytes, account_id: str, sdk: Optional[object] = None
82+
) -> None:
8183
"""Set the resolver state.
8284
8385
Stores the state for recovery and delegates to WasmResolver.

openfeature-provider/python/src/confidence/wasm_resolver.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,12 @@ def current_time(ptr: int) -> int:
9696
# Instantiate the module with imports
9797
self._instance = linker.instantiate(self._store, self._module)
9898

99-
def set_resolver_state(self, state: bytes, account_id: str, sdk=None) -> None:
99+
def set_resolver_state(
100+
self,
101+
state: bytes,
102+
account_id: str,
103+
sdk: Optional[protobuf_message.Message] = None,
104+
) -> None:
100105
"""Set the resolver state in the WASM module.
101106
102107
Args:

0 commit comments

Comments
 (0)