summaryrefslogtreecommitdiff
path: root/tests/unittest_nodes.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix line too long in unittest_nodesPierre Sassoulas2021-04-191-2/+7
|
* Add an isort configuration in setup.cfg and apply itPierre Sassoulas2021-04-191-12/+5
| | | | Except on astroid/__init__.py because of circular imports
* Fix redefining name 'astroid' from outer scopePierre Sassoulas2021-04-191-2/+2
|
* Fix issue #891Pierre Sassoulas2021-04-101-1/+1
| | | | Remove outdated COPYING and rename COPYING.LESSER
* Upgrade copyrite noticePierre Sassoulas2021-02-281-0/+3
|
* Fix black issuesMarc Mueller2021-02-271-4/+2
|
* Use new style super when applicablePierre Sassoulas2021-02-211-1/+1
|
* Remove redundant open mode 'r' in opensPierre Sassoulas2021-02-211-2/+2
|
* Update copyright noticehippo912021-02-151-2/+3
|
* Merge branch 'master' into masterhippo912021-02-071-0/+24
|\
| * Corrected the parent of function type comment nodesAshley Whetter2021-02-071-0/+13
| | | | | | | | | | | | | | These nodes used to be parented to their original ast.FunctionDef parent but are now correctly parented to their astroid.FunctionDef parent. Closes #851
| * ``is_generator`` correctly considers `Yield` nodes in `AugAssign` nodesClaudiu Popa2021-01-011-0/+11
| | | | | | | | | | | | This fixes a false positive with the `assignment-from-no-return` pylint check. Close PyCQA/pylint#3904
* | Remove required_version for 3.6 and belowDavid Gilman2020-12-311-12/+0
| | | | | | | | We are now guaranteed to be running on 3.6+
* | Remove six from astroidDavid Gilman2020-12-301-16/+2
|/
* `FunctionDef.is_generator` properly handles `yield` nodes in `If` tests (#799)Claudiu Popa2020-06-091-0/+13
| | | Close PyCQA/pylint#3583
* `FunctionDef.is_generator` properly handles `yield` nodes in `While` testsClaudiu Popa2020-05-121-0/+12
| | | | Close PyCQA/pylint#3519
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-271-1/+5
|
* Change test that expected as_string() to return a particular number of newlinesClaudiu Popa2020-03-101-7/+6
|
* Disable test on PyPy since we cannot get 7.2 easily without manually ↵Claudiu Popa2020-03-031-1/+7
| | | | installing it
* Can access positional only and keyword only argument type commentsAshley Whetter2020-01-111-0/+41
|
* ``nodes.Const.itered`` returns a list of ``Const`` nodes, not stringsClaudiu Popa2019-12-151-0/+9
| | | | | | | Because ``Const.itered`` was not returning proper nodes, pylint was failing when trying to infer objects created from those nodes. Close PyCQA/pylint#3306
* Fix as_string for f-strings (#709)Alex Hall2019-10-191-1/+16
| | | | | | | | as_string currently has very poor support for f-strings: Conversions (e.g. !r) and format specifiers (e.g. :.3) are left out. Quotes easily clash leading to syntax errors. Escape sequences such as \n are not handled. Literal braces are not escaped.
* Fix as_string for attribute nodes with integer valuesAlex Hall2019-10-181-0/+8
|
* Fix async function definitions with decorators (#710)Alex Hall2019-10-181-0/+11
|
* Fix ClassDef.as_string() with keyword arguments, especially the metaclass (#707)Alex Hall2019-10-181-0/+26
| | | | | | * Failing test for ClassDef.as_string involving keyword arguments * Fix construction of keyword arguments in ClassDef as_string
* Moved tests out of package directory (#704)Ashley Whetter2019-10-151-0/+1220