Commit Graph

373 Commits

Author SHA1 Message Date
Hynek Schlawack 3040bdabbc Refactor class creation (#272)
Instead of adding and possibly later deleting attributes, the class creation is delegated into a cleaner building pattern.
2017-10-26 12:55:34 +02:00
Hynek Schlawack 5c5677b72b Document how to get help (#266) 2017-10-19 12:05:45 +02:00
Hynek Schlawack f7f53d4312 Link to namedtuple confusion
Without any reasons, it looks a bit hand-wavy.
2017-10-14 18:27:48 +02:00
Hynek Schlawack 4a19d9b14d Add safe-guard against collecting too much 2017-10-06 14:38:23 +02:00
Hynek Schlawack f47efca44e Some changelog adjustments 2017-10-03 10:45:00 +02:00
Hynek Schlawack 03c10ad0ef Use new serious biz names in internal code (#257)
* Use new serious biz names

* Use offical API in tests where possible

* Fix flake8
2017-10-02 19:32:10 +02:00
Hynek Schlawack 6b74a4bf7f Remove dead code 2017-10-02 15:21:35 +02:00
Hynek Schlawack 8b490b8586 Stop setting attributes on class bodies (#253)
* Stop setting attributes on class bodies

This behavior has been deprecated since 16.1 and can now be removed in
accordance with our backward-compatibility policy.

* We don't need iterkeys anymore
2017-10-02 12:14:37 +02:00
Ned Batchelder ba9e8bcd24 Tweak the English. (#246) 2017-09-18 14:55:39 +02:00
Chad Dombrova 566ada9848 Basic type support (#239)
* Add support for passing a type to attr.ib() and gathering the type from PEP526-style annotations.

* Address review notes.

* More review notes.

* A few more review changes.

* Quick final fix to the changelog.
2017-09-17 16:22:49 +02:00
Hynek Schlawack 0d04d5e7fc Consistency 2017-08-21 11:20:50 +02:00
Hynek Schlawack d08753d2e1 Stress that attrs doesn't take away control 2017-08-21 10:29:42 +02:00
Hynek Schlawack 26a8c8c7b3 Expand notes on namedtuples (#237) 2017-08-21 10:25:29 +02:00
Hynek Schlawack 4faf5f9c26 Allow subclasses to overwrite attributes (#229)
Simply filter out all attributes from super classes that are present in the
current class.

Fixes #221
2017-08-21 00:39:34 +02:00
Hynek Schlawack 37a421e559 Remove empty headers 2017-08-20 08:36:55 +02:00
Hynek Schlawack cce7ff2ace Add another explanation and warning to the changelog 2017-08-20 08:35:12 +02:00
Hynek Schlawack 5184ecac99 Obey own naming scheme 2017-08-20 08:11:12 +02:00
Hynek Schlawack 622d6adf97 Explain location of news fragments in CHANGELOG.rst 2017-08-20 08:05:07 +02:00
Hynek Schlawack 55ae1945b3 Move changelog to towncrier (#236) 2017-08-20 07:58:08 +02:00
Hynek Schlawack e31cbe5cfd Add more docs about __attrs_post_init__ (#235)
* Add more docs about __attrs_post_init__

* Grammer
2017-08-18 20:43:38 +02:00
Hynek Schlawack c637f5b4f8 Wordsmith how does it work 2017-08-18 17:19:11 +02:00
Hynek Schlawack 57f3d38e50 Use a modern pypy2 2017-08-10 14:07:21 +02:00
Hynek Schlawack 57dd2cc34a Better wording 2017-08-10 14:04:02 +02:00
Tin Tvrtković 47583a9459 Bugfix/slot super (#226) 2017-08-03 17:04:48 +02:00
Florian Bruhin 7f2490132b Adjust review feedback line from CONTRIBUTING (#225)
GitHub sends out mails on new PR pushes since some time already.
2017-08-01 21:01:35 +02:00
Hynek Schlawack 5f7e4ea25a We don't do the square bracket thing anymore 2017-08-01 11:33:27 +02:00
Tristan Seligmann 74c39b6b46 Pass appropriate stacklevel in assoc deprecation warning. (#209) 2017-07-29 14:57:07 +02:00
rtoijala 10368b4232 Some more typos (#219)
I went with the American spelling of "fulfill" instead of the British
"fulfil".
2017-07-20 17:30:20 +02:00
rtoijala 93c5d2a99d Fix some typos in doc strings (#218) 2017-07-20 15:05:20 +02:00
Felix Yan 50107f60a2 Fix a typo: suceeds -> succeeds (#210) 2017-06-11 19:37:56 +02:00
egregius313 1c0549ce27 Fix typo in example error message (#206)
The error message on line 311 said "y must be... when it was supposed to be "x must be...
2017-06-07 06:22:44 +02:00
Hynek Schlawack 24815d7a78 Make Factory hashable (#204)
* Make Factory hashable

* Add PR#
2017-06-06 13:13:41 +02:00
Hynek Schlawack 303b2f627f Activate warnings (#201) 2017-06-01 13:12:19 +02:00
Andy Freeland a6cf2d5637 Fix unbound __str__ on Python 2 when slots=True (#199)
Previously:

```pycon
>>> import attr
>>> @attr.s(str=True, slots=True)
... class A(object):
...     a = attr.ib()
...
>>> a = A(1)
>>> str(a)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unbound method repr_() must be called with A instance as first argument (got nothing instead)
```

Fixes #198.
2017-06-01 09:30:31 +02:00
Hynek Schlawack f8dab9b7ac Use VIRTUALENV_NO_DOWNLOAD in tox (#200) 2017-06-01 09:20:30 +02:00
George Macon 4db1f4ef17 Document weakref to slot class (#197)
This adds a paragraph to the documentation that includes the method
described by @Tinche in #174 for making a slot class weak-referenceable.
2017-05-31 20:42:31 +02:00
Hynek Schlawack dc5253a061 Start new release cycle 2017-05-24 11:04:18 -07:00
Hynek Schlawack c324a7d547 Prepare 17.2.0 2017-05-24 10:57:35 -07:00
Hynek Schlawack eb20daff94 Computers 2017-05-23 16:35:40 -07:00
Hynek Schlawack 58fa57290a Make testimonials stand out better 2017-05-23 16:29:32 -07:00
Hynek Schlawack ca34d804e9 Make theme less agist 2017-05-23 16:11:37 -07:00
Hynek Schlawack ac635442a5 Link proof of KR's endorsement 2017-05-23 15:40:45 -07:00
Hynek Schlawack 0c8057cc90 Also mention __init__ in frozen caveat
ref #196
2017-05-23 15:34:11 -07:00
Hynek Schlawack a62ba1a575 Add Kenneth's testimonial 2017-05-22 17:56:24 -07:00
Hynek Schlawack 26c166e08b Rip out characteristic bits
Nobody knows about it anymore.
2017-05-22 17:32:39 -07:00
Hynek Schlawack 0dea63c4db Document how to circumvent frozeness
fixes #196
2017-05-22 17:08:09 -07:00
Hynek Schlawack 04e171aa4c Document validator syntax more prominently 2017-05-22 16:42:40 -07:00
Hynek Schlawack 8ed593b954 Better way to fix evolve docs 2017-05-22 16:23:18 -07:00
Hynek Schlawack b7919d0ddd Fix doc build on sphinx 1.6.1 2017-05-22 16:16:12 -07:00
Glyph 1288f94910 it's not where I work any more (#195)
say other good things about me
2017-05-22 16:02:22 -07:00