Skip to content

Conversation

@federicobond
Copy link
Member

This PR

Modifies the get_provider and get_provider_metadata return types to guarantee that they don't return a None value.

The default provider is initialized as a NoOpProvider at module loading time, so this simplifies the usage of the provider functions for clients.

Signed-off-by: Federico Bond <federicobond@gmail.com>
@federicobond federicobond force-pushed the provider-not-optional branch from 21169f4 to 8329e89 Compare February 3, 2024 19:33
@codecov
Copy link

codecov bot commented Feb 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1282bab) 94.02% compared to head (8329e89) 94.41%.

❗ Current head 8329e89 differs from pull request most recent head c76bc8a. Consider uploading reports for the commit c76bc8a to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #270      +/-   ##
==========================================
+ Coverage   94.02%   94.41%   +0.39%     
==========================================
  Files          17       17              
  Lines         452      448       -4     
==========================================
- Hits          425      423       -2     
+ Misses         27       25       -2     
Flag Coverage Δ
unittests 94.41% <100.00%> (+0.39%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@federicobond federicobond mentioned this pull request Feb 3, 2024
2 tasks
@federicobond federicobond merged commit cb1677b into open-feature:main Feb 6, 2024
@federicobond federicobond deleted the provider-not-optional branch February 6, 2024 14:15
kikihakiem pushed a commit to ResalApps/openfeature-python-sdk that referenced this pull request Aug 28, 2025
…2.1 (open-feature#270)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

3 participants