-
Notifications
You must be signed in to change notification settings - Fork 991
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
test settings.possible_values() #13796
test settings.possible_values() #13796
Conversation
@@ -7,7 +7,7 @@ | |||
WindowsStore: | |||
version: ["8.1", "10.0"] | |||
WindowsCE: | |||
platform: ANY | |||
platform: [ANY] |
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.
This was a bug, realized while printing things.
@@ -154,7 +154,7 @@ def validate(self): | |||
|
|||
def get_definition(self): | |||
if isinstance(self._definition, list): | |||
return [e if e != 'None' else None for e in self.values_range] |
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.
We no longer use the "None"
literal string for this
Naming possibilities:
|
defined/possible _values makes the most sense to me... slight preference to defined :) |
Changelog: Feature: New
settings.possible_values()
method to query the range of possible values for a setting.Docs: conan-io/docs#3212
Close #13793