summaryrefslogtreecommitdiff
path: root/astroid/nodes.py
Commit message (Collapse)AuthorAgeFilesLines
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-271-1/+1
|
* Add a new EvaluatedObject containerClaudiu Popa2020-03-101-0/+1
| | | | | | | | | This container is used to store values that have already been evaluated. For instance, 79d5a3a783cf0b5a729e4e467508e955a0cca55f added support for inferring `tuple()` call arguments, but as a result, the `elts` of a `Tuple` can be objects not *references*. As a result, `Tuple.elts` can contain class objects rather than references (names) to class object. The `EvaluatedObject` helps with that, as we still have to call `.infer()` (albeit a no-op) to grab the inferred value of an element.
* Add support for Python 3.8's `NamedExpr` nodes, which is part of assignment ↵Claudiu Popa2019-06-011-0/+2
| | | | | | expressions. Close #674
* Initial formatting of astroidClaudiu Popa2018-10-021-33/+136
|
* Update the copyright noticesastroid-2.0Claudiu Popa2018-07-151-2/+7
|
* kill aliases scheduled for removalClaudiu Popa2018-05-241-4/+0
|
* Revert "Move FrozenSet to node_classes so it is accessible"Bryce Guinta2018-03-111-1/+1
| | | | This reverts commit 06273cd07d4b3701998df7b2c656d1b029bdee8e.
* Move FrozenSet to node_classes so it is accessibleBryce Guinta2018-03-111-1/+1
| | | | importing astroid.objects causes curcular imports with manager
* Public facing node documentationAshley Whetter2017-11-051-16/+4
|
* Use nodes.Unknown instead of Uninferable for specifying unknown inference ↵Claudiu Popa2017-03-121-0/+1
| | | | | | | results In the context of binop inference for lists and tuples, we were rebuilding a collection with the inferred elements. We were using Uninferable for specifying inference failures, but this leads to having non-AST nodes in collection's elts attribute, which should not happen. Instead, we replaced Uninferable with Unknown, meaning now we have an AST object.
* Add support for Python 3.6's annotated assignment nodesrr-2017-02-091-2/+2
|
* add format string support (#365)Jared Garst2016-10-241-0/+2
| | | Format strings require support for two new nodes, FormattedValue, respectively JoinedStr.
* Even more granular copyrights (thanks to copyrite)Claudiu Popa2016-07-221-2/+5
|
* Keep a consistent copyright notice across the board.Claudiu Popa2016-07-191-0/+2
|
* Convert all files to new license headerCeridwen2016-05-161-17/+3
|
* Add a new node, DictUnpack, for representing the unpacking of a dict using ↵Claudiu Popa2015-10-061-3/+5
| | | | | | | | | PEP 448 This is a different approach than what the builtin ast module does, since it just uses None to represent this kind of operation, which seems conceptually wrong, due to the fact the AST contains non-AST nodes. Closes issue #206.
* Fix trailing whitespaces and add the missing code that wasn't added in the ↵Claudiu Popa2015-09-111-1/+1
| | | | previous commit.
* Second pass of the Python 3.5 support: adding Async nodes.Claudiu Popa2015-09-071-1/+4
|
* First pass of the Python 3.5 support.Claudiu Popa2015-09-071-1/+2
|
* Merge main into defaultCeridwen2015-08-141-2/+0
|\
| * Remove the useless __docformat__ variable.Claudiu Popa2015-07-231-2/+0
| |
* | Move proxies to nodes.py and scoped_nodes.pyCeridwen2015-07-131-21/+6
| |
* | Fix code review comments.Ceridwen2015-07-131-3/+3
| | | | | | | | | | | | | | | | Added aliases for inferred() and assign_type(), refactor some uses of ternary if, remove some now-unused internal functions in rebuilder, replaced the mutating docstring function with one that returns values as well as side-effects, change back to lazy-object-proxy, and add keyword args to the Module call in rebuilder.
* | Fix isinstance/proxy bug by changing from lazy-object-proxy to wrapt and ↵Ceridwen2015-07-111-3/+4
| | | | | | | | minor fixes
* | Fix small formatting issuesCeridwen2015-07-101-1/+1
| |
* | Refactor node classes to have constructors and change some names.Ceridwen2015-07-101-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I corrected the spelling of 'infered' to 'infered' and changed some to make them more consistent with the built-in ast module and to read better in English. I created aliases with proxy objects to maintain backwards compatibility. I also refactored the node classes so that they have __init__ and postinit functions. The postinit function has to be called after the creation of a parent with the instances of its children because the node __init__ functions have to take a parent instance to maintain the doubly-linked structure of the AST. This involved moving considerable amounts of node-construction logic from rebuilder.py to node_classes.py and scoped_nodes.py.
* | Node constructors almost finished except for two bugsCeridwen2015-07-081-14/+14
|/
* Fix pylint warnings over astroid, update the list of disabled messages in ↵Claudiu Popa2015-05-191-11/+14
| | | | pylintrc.
* Fix all unused imports in the code base.Claudiu Popa2015-01-291-0/+1
| | | | Also, this patch adds a new rule in the pylintrc for the CI gate.
* Move all astroid modules into a its own directory, which is now the package.Torsten Marek2014-11-081-0/+73
python setup.py develop now works.