Skip to content
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

asdict(): Optionally retain collection types #71

Closed
wants to merge 3 commits into from

Conversation

vortec
Copy link
Contributor

@vortec vortec commented Aug 22, 2016

Fixes #69

@codecov-io
Copy link

codecov-io commented Aug 22, 2016

Current coverage is 100% (diff: 100%)

Merging #71 into master will not change coverage

@@           master   #71   diff @@
===================================
  Files           8     8          
  Lines         393   394     +1   
  Methods         0     0          
  Messages        0     0          
  Branches       90    90          
===================================
+ Hits          393   394     +1   
  Misses          0     0          
  Partials        0     0          

Powered by Codecov. Last update dd4140e...0c7a9b0

@@ -25,6 +26,11 @@ def asdict(inst, recurse=True, filter=None, dict_factory=dict):
example, to produce ordered dictionaries instead of normal Python
dictionaries, pass in ``collections.OrderedDict``.

:param bool retain_collection_types: Do not convert to ``list`` when
encountering an attribute which is type ``tuple`` or ``set``.
``recurse`` must also be ``True``.

This comment was marked as spam.

@vortec
Copy link
Contributor Author

vortec commented Aug 23, 2016

Updated.

@hynek
Copy link
Member

hynek commented Aug 23, 2016

Merged in c6fbec9 – thanks!

@hynek hynek closed this Aug 23, 2016
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.

3 participants