Skip to content

docs: Fix invalid Python in the README context examples - #75

Merged
kinyoklion merged 1 commit into
mainfrom
devin/1793922115-readme-context-examples
Nov 6, 2026
Merged

kinyoklion merged 1 commit into
mainfrom
devin/1793922115-readme-context-examples

Conversation

@kinyoklion

@kinyoklion kinyoklion commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Related issues

None. Found during the weekly OpenFeature provider audit.

Describe the solution you've provided

The EvaluationContext examples in "OpenFeature Specific Considerations" did not run as Python: they used null/true, , in place of : in dict entries, a [ ... "anonymous" = > true ] list for the user context, and a trailing ;. The "private attributes in a multi-context" example also set "kind": "organization" rather than "multi", so it described a single context with nested attributes instead of the multi-context the heading names.

Each example now executes, and each one converts through EvaluationContextConverter to a valid LaunchDarkly context of the intended shape (checked against openfeature-sdk 0.10.0 and launchdarkly-server-sdk 9.20.0).

Describe alternatives you've considered

None.

Additional context

Docs only; no code changes.

Link to Devin session: https://app.devin.ai/sessions/f7bc946afe8c41a28cf7f3f497fc8b9d
Open in Devin Desktop: https://app.devin.ai/desktop/session/f7bc946afe8c41a28cf7f3f497fc8b9d?variant=devin

SDK-3496


Note

Overview
README-only fix for the OpenFeature EvaluationContext examples under “OpenFeature Specific Considerations.”

The snippets now use valid Python: dict entries use : instead of ,, None/True replace null/true, trailing semicolons are removed, and nested user/organization blocks are dicts rather than malformed lists or "anonymous" = > true syntax. The private attributes in a multi-context example now sets "kind": "multi" (was "organization") so it matches the section title and the intended multi-context shape.

Reviewed by Cursor Bugbot for commit d6e47f3. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-Authored-By: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration
devin-ai-integration Bot marked this pull request as ready for review November 5, 2026 23:50
@devin-ai-integration
devin-ai-integration Bot requested a review from a team as a code owner November 5, 2026 23:50
@kinyoklion
kinyoklion merged commit 8dcdb7e into main Nov 6, 2026
9 checks passed
@kinyoklion
kinyoklion deleted the devin/1793922115-readme-context-examples branch November 6, 2026 17:11
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