diff --git a/CHANGELOG.rst b/CHANGELOG.rst index fe6c18e0..b67c1726 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -28,8 +28,7 @@ Changes: - ``__slots__`` have arrived! Classes now can automatically be `slots `_-style (and save your precious memory) just by passing ``slots=True``. `#35 `_ -- ``attr.asdict`` can now produce arbitrary mappings instead of Python ``dict``s - when provided a ``dict_factory`` argument. +- ``attr.asdict`` can now produce arbitrary mappings instead of Python ``dict``s when provided with a ``dict_factory`` argument. `#40 `_ diff --git a/src/attr/_funcs.py b/src/attr/_funcs.py index 3c1ae30d..07cc7bf9 100644 --- a/src/attr/_funcs.py +++ b/src/attr/_funcs.py @@ -13,7 +13,8 @@ def asdict(inst, recurse=True, filter=None, dict_factory=dict): :param inst: Instance of a ``attrs``-decorated class. - :param bool recurse: Recurse into classes that are also ``attrs``-decorated. + :param bool recurse: Recurse into classes that are also + ``attrs``-decorated. :param callable filter: A callable whose return code deteremines whether an attribute or element is included (``True``) or dropped (``False``). Is diff --git a/tests/__init__.py b/tests/__init__.py index 1f8d93da..49b0648e 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -60,6 +60,7 @@ def _gen_attr_names(): for inner in lc: yield outer + inner + def _create_hyp_class(attrs): """ A helper function for Hypothesis to generate attrs classes.