Skip to content

docs: fix Python OpenFeature provider docs and use set_provider_and_wait - #982

Merged
jonathannorris merged 1 commit into
mainfrom
docs/python-openfeature-provider-fixes
Aug 6, 2026
Merged

docs: fix Python OpenFeature provider docs and use set_provider_and_wait#982
jonathannorris merged 1 commit into
mainfrom
docs/python-openfeature-provider-fixes

Conversation

@jonathannorris

@jonathannorris jonathannorris commented Aug 5, 2026

Copy link
Copy Markdown
Member

Summary

  • Switches the Python OpenFeature setup snippet to set_provider_and_wait(). set_provider() returns before the provider is ready, so an init failure becomes a background PROVIDER_ERROR event while evaluations return defaults with PROVIDER_NOT_READY
  • Fixes client.get_boolean_value(...) to open_feature_client.get_boolean_value(...); the snippet as written raises NameError
  • Removes a Go snippet (openfeature.NewEvaluationContext, map[string]interface{}) pasted into the Python "Context Limitations" example
  • Drops an unused DevCycleUser import and a stray tab indent

Matches DevCycleHQ/python-server-sdk#116.

Related: DevCycleHQ/AI-Prompts-And-Rules#13 fixes the same issues in the AI install prompt that this page renders via the AIPromptCopyButton.

Copilot AI left a comment

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.

Pull request overview

Updates the Python OpenFeature provider documentation to make the setup and evaluation snippets correct and to remove incorrect pasted content, improving accuracy for users integrating DevCycle with OpenFeature in Python.

Changes:

  • Switch the setup snippet to api.set_provider_and_wait(...) and document why it’s preferred over set_provider().
  • Fix the evaluation snippet to use open_feature_client.get_boolean_value(...) (avoids NameError).
  • Remove the incorrect Go context example and clean up formatting/unused import.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/sdk/server-side-sdks/python/python-openfeature.md
@jonathannorris
jonathannorris merged commit 366275c into main Aug 6, 2026
6 checks passed
@jonathannorris
jonathannorris deleted the docs/python-openfeature-provider-fixes branch August 6, 2026 13:46
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.

4 participants