attrs/docs
Andrei Bodrov bc527b9f29
[RFC] kw_only python 2 backport (#700)
* Added kw_only support for py2

* Docs update

* Added changelog

* Better exception message, moved code to function

* Moved py2-only functions under if PY2:

* Tested fancy error message for unexpected kw-only argument

* Tested fancy error message for unexpected kw-only argument

* Fixed line length

* Added versionchanged

* Updated docs

* Moved functions back under if PY2 - seems codecov doesn't like them in module scope

* Blacked

* Fixed changelog.d

* Removed redundant brackets in test

* Added assertion to the _unpack_kw_only_lines_py2 - hope it will increase code coverage

* List comprehension -> for loop

* lines.extend? I do not like for-loops

* Fix code

* Fixed style/added comment

* Fixed docs (removed python2 mention)

* Fix lint

* Better docstring

* Rewritten docstring and added example code

* Added quotes

Co-authored-by: Hynek Schlawack <hs@ox.cx>
2020-10-19 11:00:00 +02:00
..
_static Refactor docs and switch to RTD theme 2020-03-08 07:46:56 +01:00
Makefile Gut docs for now 2015-01-27 23:03:04 +01:00
api.rst Attribute.assoc → evolve 2020-10-17 07:27:36 +02:00
backward-compatibility.rst the twisted backwards compatability policy moved (#688) 2020-09-10 13:22:20 +02:00
changelog.rst Repo janitoring 2015-12-08 15:47:03 +01:00
conf.py Furo works with SVG! 2020-10-16 08:19:09 +02:00
contributing.rst Clean up main directory a bit 2017-12-27 13:32:32 +01:00
docutils.conf Fix doc build on sphinx 1.6.1 2017-05-22 16:16:12 -07:00
examples.rst [RFC] kw_only python 2 backport (#700) 2020-10-19 11:00:00 +02:00
extending.rst Attribute.assoc → evolve 2020-10-17 07:27:36 +02:00
glossary.rst Beef up glossary and urge people more to read it 2020-09-28 11:27:37 +01:00
hashing.rst Split cmp into eq and order (#574) 2019-09-22 15:07:19 +02:00
how-does-it-work.rst Add on_setattr hooks to attr.s and attr.ib (#660) 2020-07-20 12:43:10 +02:00
index.rst Refactor docs and switch to RTD theme 2020-03-08 07:46:56 +01:00
init.rst Switch to furo 2020-10-05 06:35:40 +01:00
license.rst Fix links 2017-02-20 07:46:55 +01:00
overview.rst Refactor docs and switch to RTD theme 2020-03-08 07:46:56 +01:00
python-2.rst Add Python 2 statement (#498) 2019-02-10 07:32:19 +01:00
types.rst Rephrase for clarity 2020-07-23 14:50:04 +02:00
why.rst Fix simple typo: developement -> development (#600) 2019-11-18 08:54:17 +01:00