Skip to content

chore: update sdk readmes#1369

Merged
toddbaert merged 1 commit intomainfrom
update-sdk-readmes
Apr 20, 2026
Merged

chore: update sdk readmes#1369
toddbaert merged 1 commit intomainfrom
update-sdk-readmes

Conversation

@openfeaturebot
Copy link
Copy Markdown
Contributor

The PR was automatically generated via the update-sdk-docs GitHub workflow.

Signed-off-by: OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com>
@openfeaturebot openfeaturebot requested review from a team as code owners April 20, 2026 08:55
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 20, 2026

Deploy Preview for openfeature ready!

Name Link
🔨 Latest commit 148de2e
🔍 Latest deploy log https://app.netlify.com/projects/openfeature/deploys/69e5e9fd7ba9a200084ef914
😎 Deploy Preview https://deploy-preview-1369--openfeature.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the documentation for several SDKs, primarily refreshing the "Last updated" timestamps. Significant updates were made to the Go and Python documentation to correct API usage, import paths, and code snippets. In the Python documentation, a correction was suggested for the after method's type hints in the hook implementation example to avoid incorrect generic usage.

Comment on lines +505 to +508
from openfeature.flag_evaluation import FlagEvaluationDetails, FlagValueType

class MyHook(Hook):
def after(self, hook_context: HookContext, details: FlagEvaluationDetails, hints: dict):
def after(self, hook_context: HookContext, details: FlagEvaluationDetails[FlagValueType], hints: HookHints):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The type hint FlagEvaluationDetails[FlagValueType] is incorrect. FlagEvaluationDetails is a generic class where the type parameter represents the type of the flag value (e.g., bool, str, float, etc.), not the FlagValueType enum itself. Since this is a generic hook example, it's better to use FlagEvaluationDetails without a type argument (which defaults to Any) and remove the unused FlagValueType import.

from openfeature.flag_evaluation import FlagEvaluationDetails

class MyHook(Hook):
    def after(self, hook_context: HookContext, details: FlagEvaluationDetails, hints: HookHints):

@toddbaert toddbaert merged commit 2f0614d into main Apr 20, 2026
9 checks passed
@toddbaert toddbaert deleted the update-sdk-readmes branch April 20, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants