Skip to content

Document parsing lists in query strings; remove duck typing#407

Merged
sloria merged 2 commits intodevfrom
delimitedlist-improvements
Jul 24, 2019
Merged

Document parsing lists in query strings; remove duck typing#407
sloria merged 2 commits intodevfrom
delimitedlist-improvements

Conversation

@sloria
Copy link
Copy Markdown
Member

@sloria sloria commented Jul 24, 2019

close #406


def is_multiple(field):
"""Return whether or not `field` handles repeated/multi-value arguments."""
return isinstance(field, ma.fields.List) and not hasattr(field, "delimiter")
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably did this to avoid the circular import. Was a bad decision in retrospect.

@sloria sloria merged commit d5c5ac5 into dev Jul 24, 2019
@sloria sloria deleted the delimitedlist-improvements branch July 24, 2019 02:48
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.

Improve documentation on fields.DelimitedList vs fields.List

1 participant