Fix flake8. Tweak changelog.
This commit is contained in:
parent
96e217dcd3
commit
6ce0a0d80d
|
@ -28,8 +28,7 @@ Changes:
|
|||
- ``__slots__`` have arrived!
|
||||
Classes now can automatically be `slots <https://docs.python.org/3.5/reference/datamodel.html#slots>`_-style (and save your precious memory) just by passing ``slots=True``.
|
||||
`#35 <https://github.com/hynek/attrs/issues/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 <https://github.com/hynek/attrs/issues/40>`_
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue