summaryrefslogtreecommitdiff
path: root/tests/unittest_nodes.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Small fixes following pep8 changesPierre Sassoulas2021-06-211-2/+2
| | | | | Re-add 'ex' in good name Fix a typo rrue = true
* Fix pep8 in unittest test function's namesPierre Sassoulas2021-06-201-1/+1
|
* Use the Context enum directly and not a constant based on itPierre Sassoulas2021-06-191-9/+9
| | | | See https://github.com/PyCQA/astroid/pull/1045\#discussion_r654575507
* Rename astroid.constants to astroid.constPierre Sassoulas2021-06-191-1/+1
| | | | See https://github.com/PyCQA/astroid/pull/1045\#discussion_r654572722
* Create a permanent enum for Context instead of deleting the classPierre Sassoulas2021-06-191-9/+9
|
* Create a astroid.constants.py to avoid circular importsPierre Sassoulas2021-06-171-9/+4
| | | | And add PY3X type constants in it.
* Bump astroid to 2.6.0-dev0, update changelogPierre Sassoulas2021-06-161-1/+1
|
* Import exceptions from astroid.exceptions to avoid circular importsPierre Sassoulas2021-06-151-8/+13
|
* Remove reference to travis or appveyor in the codebasePierre Sassoulas2021-06-151-2/+2
|
* Small fix + improvements to Match nodes (#1032)Marc Mueller2021-06-151-15/+43
| | | | | | | * Fix MatchClass fields * Add types to Match fields * Remove unnecessary Match get_children methods * Fix test variable name * Add tests for Match get_children
* Deprecate Ellipsis node (#1025)Marc Mueller2021-06-131-10/+4
|
* Prepare for 2.5.8 release (#1013)v2.5.8Pierre Sassoulas2021-06-071-1/+1
|
* Improve support for Pattern Matching (#1010)Marc Mueller2021-06-071-25/+61
| | | | | | | * Improve support for Pattern Matching * Fix lineno and col_offset * Add string representation for match nodes * Add NoChildrenMixin * Add example nodes in docstrings
* Update copyright notice for 2.5.7v2.5.7Pierre Sassoulas2021-05-291-1/+2
|
* Add initial support for pattern matching py310 (#986)Marc Mueller2021-05-291-0/+176
| | | | * Add initial support for pattern matching py310 * Add typing_extensions
* Add kind field to Const (#943)Federico Bond2021-05-151-0/+13
|
* 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