We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When validating generators with foreach, _convert_to_list would remove 1 item.
foreach
_convert_to_list
This is the culprit:
for n in value: break return value
Our workaround is to override _convert_to_list with the following:
def _convert_to_list(self, value): if isinstance(value, types.GeneratorType): return list(value) else: return super(ListOf, self)._convert_to_list(value)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When validating generators with
foreach
,_convert_to_list
would remove 1 item.This is the culprit:
Our workaround is to override
_convert_to_list
with the following:The text was updated successfully, but these errors were encountered: