-
Notifications
You must be signed in to change notification settings - Fork 203
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
fix type-checking of patches to allow dict values + correctly handle patches specified as dict values in --new-pr #4070
fix type-checking of patches to allow dict values + correctly handle patches specified as dict values in --new-pr #4070
Conversation
f01a502
to
8e41344
Compare
Add STRING_OR_TUPLE_OR_DICT_LIST for testing validity of "patches" format. Required to make PR# 3994 complete.
8e41344
to
0349826
Compare
This is likely to simplistic (or plain wrong) but it's a first attempt.
@@ -349,6 +349,31 @@ def to_list_of_strings_and_tuples(spec): | |||
return str_tup_list | |||
|
|||
|
|||
def to_list_of_strings_and_tuples_and_dicts(spec): | |||
""" | |||
Convert a 'list of lists and strings' to a 'list of dicts and tuples and strings' |
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.
Convert a 'list of dicts and tuples/lists and strings' to a 'list of dicts and tuples and strings'
Fix too long line.
With this in place I now get the below error when trying to do --new-pr on an easyconfig with
Error:
Question: |
Regarding testing of this...
Ideas on how? @boegel |
@akesandgren Extensive tests that cover the added function, and the overall fixes being implemented here, in 6aa3459, 941886c, 5ace8be |
Required to make PR #3994 complete.