Hynek Schlawack
0343927ecd
Fix theme dependency
2020-10-05 06:39:48 +01:00
Hynek Schlawack
ffe49c8241
Switch to furo
...
Now everything is @pradyunsg's fault! 🎉
Signed-off-by: Hynek Schlawack <hs@ox.cx>
2020-10-05 06:35:40 +01:00
Kyle Altendorf
d684e86857
Fix to plural arguments in attr.s on_setattr docs ( #699 )
2020-10-05 04:42:12 +01:00
Hynek Schlawack
f67c1273d7
Add missing word
2020-10-02 10:00:34 +01:00
Hynek Schlawack
6aca10f2a7
Beef up glossary and urge people more to read it
...
Ref #691
2020-09-28 11:27:37 +01:00
Hynek Schlawack
b0d2d92787
Clarify __subclasses__ behavior in slotted classes
...
Ref #691,#407
2020-09-28 11:16:30 +01:00
Hynek Schlawack
a5fe89ccd9
pre-commit autoupdate
2020-09-18 13:27:38 +02:00
Hynek Schlawack
57e7a6bcda
Looks like we don't need this workaround anymore
2020-09-18 11:16:58 +02:00
Hynek Schlawack
0103c860c8
More consistency
2020-09-18 10:29:36 +02:00
Hynek Schlawack
58c27a4c77
Thank you @timothycrosley!
2020-09-18 10:02:51 +02:00
Thomas Grainger
fe8fe011df
the twisted backwards compatability policy moved ( #688 )
...
in a backwards compatible way
2020-09-10 13:22:20 +02:00
Hynek Schlawack
28d75dbf89
Start 20.3.0 cycle
2020-09-05 13:22:24 +02:00
Hynek Schlawack
4f74fbaca3
Prepare 20.2.0
2020-09-05 12:19:07 +02:00
Hynek Schlawack
74605de4cd
Elaborate more on #684
2020-09-05 11:36:09 +02:00
Hynek Schlawack
ea04c15d7f
Drop superfluous word
2020-09-05 11:24:37 +02:00
Hynek Schlawack
060d1efbdd
Add newsfragment on state of NG APIs
2020-09-05 11:23:35 +02:00
Hynek Schlawack
c45472286a
Fix typo
2020-09-05 11:15:26 +02:00
Hynek Schlawack
504eefe91f
NG: make frozen classes comfortably subclassable ( #687 )
...
* NG: make frozen classes comfortably subclassable
* Add newsfragment
* This ain't markdown
* Address review
2020-09-05 11:14:54 +02:00
Hynek Schlawack
48755905ee
Don't reset custom __setattr__ in slotted classes ( #681 )
...
* Don't reset custom __setattr__ in slotted classes
Fixes #680
Signed-off-by: Hynek Schlawack <hs@ox.cx>
* Simplify
Signed-off-by: Hynek Schlawack <hs@ox.cx>
* Be defensive about __bases__
Signed-off-by: Hynek Schlawack <hs@ox.cx>
* _Classes_ always have a __dict__
* Tighten xfail
* Clarify what need to be reset and when
Signed-off-by: Hynek Schlawack <hs@ox.cx>
* Reset __attrs_own_setattr__ along with __setattr__
Signed-off-by: Hynek Schlawack <hs@ox.cx>
* Update src/attr/_make.py
Co-authored-by: Paul Ganssle <paul@ganssle.io>
* Differentiate between own (= attrs) and custom (= user) __setattrs__
Signed-off-by: Hynek Schlawack <hs@ox.cx>
* We've always used __bases__ in our call to type()
So no reason for being defensive.
* Update tests/test_setattr.py
Co-authored-by: Paul Ganssle <paul@ganssle.io>
Co-authored-by: Paul Ganssle <paul@ganssle.io>
2020-09-05 09:46:06 +02:00
Hynek Schlawack
bfd7bb49b4
Ignore inherited field when comparing Attributes ( #684 )
...
* Ignore inherited field when comparing Attributes
fixes #682
* add newsfragment
2020-09-03 07:16:58 +02:00
Paul Ganssle
dfb2ee284d
Make `zope` a semi-optional test dependency ( #685 )
2020-09-03 06:56:17 +02:00
Hynek Schlawack
00c1c2c28c
Add check-toml hook
2020-09-02 09:03:06 +02:00
Hynek Schlawack
f680c5b83e
pre-commit autoupdate
...
Latest black required to remove a bunch of commas to prevent line explosion.
2020-09-01 09:56:52 +02:00
Hynek Schlawack
be6b342e4b
Update PULL_REQUEST_TEMPLATE.md
2020-08-31 09:53:31 +02:00
Kyle Altendorf
42a3eb29d1
Doc type: into -> in ( #679 )
2020-08-31 09:51:43 +02:00
Hynek Schlawack
1f67eefb4f
Use pre-commit for interrogate
2020-08-25 12:37:54 +02:00
Hynek Schlawack
3a5b5a2052
Use interrogate's pyproject.toml support
2020-08-25 09:54:28 +02:00
Hynek Schlawack
2cf05a9368
Add 3.9
2020-08-24 09:26:22 +02:00
Hynek Schlawack
25cc8380ec
Add newsfragment for #671
2020-08-23 08:02:20 +02:00
Hynek Schlawack
766a787b50
Add newsframent for #675
2020-08-23 08:01:02 +02:00
David Euresti
4cfd52db51
Fix auto_attrib=None behavior when maybe_cls=None ( #675 )
...
* Fix auto_attrib=None behavior when maybe_cls=None
* Update tests/test_next_gen.py
Co-authored-by: David Euresti <github@euresti.com>
Co-authored-by: Hynek Schlawack <hs@ox.cx>
2020-08-23 07:58:04 +02:00
Hynek Schlawack
d02b76de16
Fix indentation in docs
2020-08-21 12:13:12 +02:00
Hynek Schlawack
82b9e92f25
Explain slots=True and monkeypatching
...
ref #668
Signed-off-by: Hynek Schlawack <hs@ox.cx>
2020-08-21 08:21:23 +02:00
Hynek Schlawack
358c85e74c
Fix auto-detection of eq/ne in NG APIs ( #671 )
...
Fixes #670
2020-08-21 05:19:15 +02:00
Hynek Schlawack
1a29941d5c
Start 20.2.0 cycle
2020-08-20 19:26:03 +02:00
Hynek Schlawack
90386b669e
Prepare 20.1.0
2020-08-20 19:16:15 +02:00
Hynek Schlawack
d523371d80
Prevent reST getting upset by multiple links to #666
2020-08-20 19:11:40 +02:00
Hynek Schlawack
fda437c91f
Add attr.field ( #669 )
...
* Add attr.field
* Add newsfragment
* better wordzzz
* Typo and clarification
2020-08-20 19:01:34 +02:00
Hynek Schlawack
c67a649b38
Explain that slotted classes don't support multiple inheritance
...
Fixes #667
Co-authored-by: Tin Tvrtković <tinchester@gmail.com>
2020-08-19 14:37:46 +02:00
Hynek Schlawack
b02335f59d
Add attr.define/mutable/frozen ( #666 )
...
* Add attr.auto/mutable/frozen
Prepare for import attrs y'all!
Signed-off-by: Hynek Schlawack <hs@ox.cx>
* Try combining coverage using 3.8, always
* Add tests for overriding of auto_attribs
* Clarifications
* Add newsfragment
* s/auto/define
This is going be the next-gen name anyways, so no need to introduce new names.
Signed-off-by: Hynek Schlawack <hs@ox.cx>
* Missed two
* Add type stubs
* Beg for patience
* Explain second setup-python action
* fix comment
2020-08-17 16:22:33 +02:00
Hynek Schlawack
131d1477c6
Fix doc
2020-08-14 08:24:52 +02:00
Hynek Schlawack
aea6d6f551
Announce `import attrs`
2020-08-14 08:18:33 +02:00
Hynek Schlawack
d59b154e42
Clean up api docs a bit
...
Signed-off-by: Hynek Schlawack <hs@ox.cx>
2020-08-14 08:10:26 +02:00
Hynek Schlawack
d4150f2114
Run CI against 3.9 pre-release ( #664 )
2020-08-13 13:58:58 +02:00
Hynek Schlawack
106c33c205
Clear __setattr__ if it was inherited && written by us ( #663 )
...
Signed-off-by: Hynek Schlawack <hs@ox.cx>
2020-08-13 13:49:44 +02:00
Hynek Schlawack
e554373d16
Add unittest for Attribute.inherited behavior
2020-08-04 10:59:46 +02:00
Hynek Schlawack
e2ced32c46
Rephrase for clarity
2020-07-23 14:50:04 +02:00
David Euresti
8cae2a99da
Add documentation about string annotations ( #659 )
2020-07-22 21:15:18 +02:00
Hynek Schlawack
41fc44e7ac
Braaand
2020-07-22 12:58:11 +02:00
Hynek Schlawack
3aa497d02b
Move resolve_types to _funcs and tweak docs
...
Signed-off-by: Hynek Schlawack <hs@ox.cx>
2020-07-22 12:19:58 +02:00