-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Add public NULL_LABEL constant to Azure App Configuration Provider
#45547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -69,3 +69,11 @@ | |||||||||||||||||
| # Miscellaneous Constants | ||||||||||||||||||
| # ------------------------------------------------------------------------ | ||||||||||||||||||
| NULL_CHAR = "\0" | ||||||||||||||||||
|
|
||||||||||||||||||
| # ------------------------------------------------------------------------ | ||||||||||||||||||
| # Label Constants | ||||||||||||||||||
| # ------------------------------------------------------------------------ | ||||||||||||||||||
| NULL_LABEL = NULL_CHAR | ||||||||||||||||||
| """Represents the null label (No Label) in Azure App Configuration. Use this constant | ||||||||||||||||||
| with :class:`~azure.appconfiguration.provider.SettingSelector` to select configuration | ||||||||||||||||||
| settings that have no label assigned.""" | ||||||||||||||||||
|
Comment on lines
+76
to
+79
|
||||||||||||||||||
| NULL_LABEL = NULL_CHAR | |
| """Represents the null label (No Label) in Azure App Configuration. Use this constant | |
| with :class:`~azure.appconfiguration.provider.SettingSelector` to select configuration | |
| settings that have no label assigned.""" | |
| #: Represents the null label (No Label) in Azure App Configuration. | |
| #: Use this constant with :class:`~azure.appconfiguration.provider.SettingSelector` | |
| #: to select configuration settings that have no label assigned. | |
| NULL_LABEL = NULL_CHAR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example uses a set literal for
selects, but the provider API is typed/documented asList[SettingSelector]and the paragraph below relies on selector order for precedence. Sets are unordered, so this example can produce non-deterministic precedence. Use a list (e.g.,[...]) to preserve order, and keep the explanation consistent with that.