Commit Graph

28 Commits

Author SHA1 Message Date
Tin Tvrtkovic 88f33a9375 Review feedback. 2016-05-15 02:00:36 +02:00
Tin Tvrtkovic 17a48c3bc3 Fix comments. 2016-05-08 23:50:53 +02:00
Tin Tvrtkovic cd80208187 Initial dict_factory support for asdict. 2016-05-07 19:55:09 +02:00
Hynek Schlawack 4b94e0314c Fix _Nothing class' __eq__
All instances used to be equal to anything.  Didn't pop up because attrs
always compares them using `is`.
2016-04-28 10:32:38 +02:00
Hynek Schlawack 2da44740ce Fix RTD links 2016-04-28 08:06:10 +02:00
Hynek Schlawack 402b825539 Clarify instance_of validator also takes tuples 2016-04-05 10:48:17 +02:00
David Cournapeau 7decc0cdf6 DOC: add a note on why we don't use inspect. 2016-04-02 10:23:21 +01:00
David Cournapeau dbaba50e68 ENH: bundle inspect.isclass to avoid paying the cost of inspect import. 2016-04-01 18:05:01 +01:00
Hynek Schlawack c7842b8cb6 CHANGELOG & small nits
Fixes #35, #31
2016-03-31 13:12:36 +02:00
Tin Tvrtkovic cfc42ef222 Add slots docs. 2016-03-28 21:05:00 +02:00
Tin Tvrtkovic fd627355fd Consistency changes in _make.py. 2016-03-21 22:37:49 +01:00
Tin Tvrtkovic 7d0ce60e95 Simplify slots class name handling. 2016-03-16 22:33:44 +01:00
Tin Tvrtkovic 1d21609c14 Fix reprs. 2016-03-16 22:28:43 +01:00
Tin Tvrtkovic bef877320d Flake8 fix. 2016-03-16 03:15:07 +01:00
Tin Tvrtkovic 26b7bff084 Handle some edge cases for slots.
Many more slot tests.
2016-03-16 03:10:28 +01:00
Tin Tvrtkovic 7b201eb199 Initial slots implementation. 2016-03-14 03:02:13 +01:00
Hynek Schlawack 174d37f941 Allow mandatory attributes after init=False attrs
Maybe not the best design but a valid case nonetheless.
2016-02-06 12:20:37 +01:00
Hynek Schlawack 071c3ffa4e Add docs 2015-12-19 13:51:31 +01:00
Hynek Schlawack 1af3eaa877 Allow the case of initializing attributes that are set to `init=False`
This allows for clean initializer parameter lists while being able to
initialize attributes to default values.
2015-12-19 13:43:07 +01:00
Hynek Schlawack 8b172c5988 Start new release cycle 2015-12-08 16:34:45 +01:00
Hynek Schlawack 81ff5309d9 Prepare 15.2.0 2015-12-08 16:24:46 +01:00
Christopher Armstrong 716e8acace whoops, line length. 2015-11-19 14:01:00 +01:00
Christopher Armstrong e99a9d1348 use fancy :param <type> <name>: syntax in the rest of the attr.ib docstring 2015-11-19 14:01:00 +01:00
Christopher Armstrong 2e7b750696 convert before validate, also fix two-space thing 2015-11-19 13:59:25 +01:00
Christopher Armstrong 20357d4368 fix doctests and lint 2015-11-19 13:59:25 +01:00
Christopher Armstrong 365cd89921 add a `convert` keyword to attr.ib() that allows specifying a function to convert the passed-in value. 2015-11-19 13:59:25 +01:00
Hynek Schlawack 7d765233b7 Combined coverage FTW 2015-10-16 15:11:10 +02:00
Hynek Schlawack 4c39a185ad Move package into src directory
Prevents accidental imports when running tests.
2015-10-16 15:11:10 +02:00