attrs/changelog.d
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
..
.gitignore Move changelog to towncrier (#236) 2017-08-20 07:58:08 +02:00
653.change.rst Add hooks for field transformation and for asdict serialization (#653) 2020-10-15 09:33:59 +02:00
700.change.rst [RFC] kw_only python 2 backport (#700) 2020-10-19 11:00:00 +02:00
704.change.rst Treat frozensets like sets in asdict/astuple (#704) 2020-10-19 10:17:25 +02:00
towncrier_template.rst Fix release stuff 2017-12-30 09:03:45 +01:00