Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove the # coding, since PEP3120 the default is UTF8 | Pierre Sassoulas | 2021-02-17 | 1 | -1/+0 |
| | |||||
* | Update copyright notice | hippo91 | 2021-02-15 | 1 | -0/+1 |
| | |||||
* | New copyright notices | hippo91 | 2020-12-27 | 1 | -0/+2 |
| | |||||
* | Fix starred_assigned_stmts elts cast (introduced in d68f2935) | Vilnis Termanis | 2020-12-24 | 1 | -2/+1 |
| | | | | Don't replace elts (deque) used in loop with list | ||||
* | Fix exception causes all over the codebase (#806) | Ram Rachum | 2020-06-20 | 1 | -2/+2 |
| | |||||
* | Add missing copyright annotations for the past releases | Claudiu Popa | 2020-04-27 | 1 | -2/+4 |
| | |||||
* | Do not infer the first argument of a staticmethod in a metaclass as the ↵ | Claudiu Popa | 2020-03-07 | 1 | -2/+7 |
| | | | | | | class itself Close PyCQA/pylint#3032 | ||||
* | Prevent a recursion error when inferring self-referential variables without ↵ | Claudiu Popa | 2020-03-05 | 1 | -1/+1 |
| | | | | | | definition Close PyCQA/pylint#1285 | ||||
* | ``nodes.Const.itered`` returns a list of ``Const`` nodes, not strings | Claudiu Popa | 2019-12-15 | 1 | -1/+3 |
| | | | | | | | Because ``Const.itered`` was not returning proper nodes, pylint was failing when trying to infer objects created from those nodes. Close PyCQA/pylint#3306 | ||||
* | Add support for inferring properties | Claudiu Popa | 2019-12-04 | 1 | -1/+1 |
| | | | | | These new capabilities will allow inferring both the `property` builtin as well as property attributes such as `.deleter` and `.setter`. | ||||
* | Scope the inference to the current bound node when inferring instances of ↵ | Claudiu Popa | 2019-11-25 | 1 | -0/+2 |
| | | | | | | | | | | | | | classes When inferring instances of classes from arguments, such as ``self`` in a bound method, we could use as a hint the context's ``boundnode``, which indicates the instance from which the inference originated. As an example, a subclass that uses a parent's method which returns ``self``, will override the ``self`` to point to it instead of pointing to the parent class. Close PyCQA/pylint#3157 | ||||
* | Add support for inferring exception instances in all contexts | Claudiu Popa | 2019-11-17 | 1 | -2/+2 |
| | | | | | | | | | | | We were able to infer exception instances as ``ExceptionInstance`` only for a handful of cases, but not all. ``ExceptionInstance`` has support for better inference of `.args` and other exception related attributes that normal instances do not have. This additional support should remove certain false positives related to ``.args`` and other exception attributes in ``pylint``. Close PyCQA/pylint#2333 | ||||
* | Infer args unpacking of ``self`` | Claudiu Popa | 2019-11-14 | 1 | -0/+3 |
| | | | | | | | | | | Certain stdlib modules use ``*args`` to encapsulate the ``self`` parameter, which results in uninferable instances given we rely on the presence of the ``self`` argument to figure out the instance where we should be setting attributes. Close PyCQA/pylint#3216 | ||||
* | Allow inferring positional only arguments on Python 3.8 | Claudiu Popa | 2019-11-14 | 1 | -2/+2 |
| | |||||
* | Fix linting errors | Claudiu Popa | 2019-09-11 | 1 | -1/+0 |
| | |||||
* | Remove redundant compatibility code (#693) | Hugo van Kemenade | 2019-09-10 | 1 | -4/+1 |
| | |||||
* | Add inference support to NamedExpr nodes | Claudiu Popa | 2019-06-02 | 1 | -0/+17 |
| | |||||
* | Drop a superfluous and wrong callcontext when inferring the result of a ↵ | Claudiu Popa | 2019-04-09 | 1 | -2/+0 |
| | | | | | | | | | | | | | context manager The callcontext was containing the instance of the class (self) as the sole argument, but this was tripping the inference of unknown arguments coming down into an instance, such as the one from the commit's example. By dropping the superfluous callcontext, the inference can no longer assume that the first argument is the instance of the class, leading to wrongly infer `self.client` as the first argument of the instantiation call. Close PyCQA/pylint#2859 | ||||
* | Replace a couple of returns with explicit InferenceError exceptions | Claudiu Popa | 2019-01-19 | 1 | -8/+10 |
| | |||||
* | Remove StopIteration handling which should not leak at all from inference | Claudiu Popa | 2019-01-18 | 1 | -10/+3 |
| | |||||
* | Reuse the cls variable inferred earlier | Claudiu Popa | 2018-10-11 | 1 | -1/+1 |
| | |||||
* | Update some leftover docstrings | Claudiu Popa | 2018-10-11 | 1 | -5/+9 |
| | |||||
* | Use yield from | Claudiu Popa | 2018-10-10 | 1 | -2/+1 |
| | |||||
* | Remove some unneeded comments and use yield from | Claudiu Popa | 2018-10-10 | 1 | -6/+2 |
| | |||||
* | Use itertools.chain to join multiple generators together | Claudiu Popa | 2018-10-10 | 1 | -3/+8 |
| | |||||
* | Use a generator expression for _multiply_seq_by_int | Claudiu Popa | 2018-10-10 | 1 | -8/+6 |
| | |||||
* | Initial formatting of astroid | Claudiu Popa | 2018-10-02 | 1 | -118/+158 |
| | |||||
* | Rename asspath to assign_path to be more indicative of what it actually means | Claudiu Popa | 2018-10-02 | 1 | -44/+45 |
| | |||||
* | infer_call_result can raise InferenceError so make sure to handle that for ↵ | Claudiu Popa | 2018-07-31 | 1 | -2/+1 |
| | | | | | | | | | | | the call sites where it is used infer_call_result started recently to raise InferenceError for objects for which it could not find any returns. Previously it was silently raising a StopIteration, which was especially leaking when calling builtin methods. Since it is after all an inference method, it is expected that it could raise an InferenceError rather than returning nothing. Close PyCQA/pylint#2350 | ||||
* | Cut obsolete "explicit StopIteration" comments | Nick Drozd | 2018-07-30 | 1 | -8/+0 |
| | | | | The explicit StopIterations were themselves were cut in ceeee097. | ||||
* | Spelling fixes | Ville Skyttä | 2018-07-24 | 1 | -5/+5 |
| | |||||
* | Update the copyright noticesastroid-2.0 | Claudiu Popa | 2018-07-15 | 1 | -2/+12 |
| | |||||
* | Fix inference for nested calls | Bryce Guinta | 2018-07-05 | 1 | -1/+2 |
| | | | | | | | | | Add context_lookup to the context class as extra_context. Deliver the correct context with the correct boundnode for function argument nodes. Close #177 | ||||
* | Disable too-many-* for this function | Claudiu Popa | 2018-06-15 | 1 | -1/+1 |
| | |||||
* | Drop the requirement that lhs and rhs should have the same number of ↵ | Claudiu Popa | 2018-06-15 | 1 | -9/+10 |
| | | | | | | elements when inferring Starred This improves the capabilities a bit, since we know infer those as empty lists | ||||
* | Added inference support for starred nodes in for loops | Claudiu Popa | 2018-06-15 | 1 | -5/+100 |
| | | | | Close #146 | ||||
* | Use postinit() to initialize the list generated by a Starred node | Claudiu Popa | 2018-06-15 | 1 | -3/+9 |
| | |||||
* | The exception should be IndexError, not KeyError, since items is a list | Claudiu Popa | 2018-06-15 | 1 | -1/+1 |
| | |||||
* | Support unpacking for dicts in assignments | Claudiu Popa | 2018-06-14 | 1 | -13/+25 |
| | | | | Close #268 | ||||
* | Remove useless TODOs that are either issues in the issue tracker or things ↵ | Claudiu Popa | 2018-06-12 | 1 | -3/+1 |
| | | | | which we'll never get to fix/change | ||||
* | Convert to yield from | Nick Drozd | 2018-06-08 | 1 | -17/+8 |
| | | | | | | | I tried this to see if it would improve performance. It didn't, but it does look nicer, so we might as well keep it. See also 5fd5aa81483e709cb5c464c7d4bb37c8c39f2afa | ||||
* | Remove reraise() in favour of using raise..from | Claudiu Popa | 2018-05-31 | 1 | -9/+9 |
| | |||||
* | Fix lint errors | Ashley Whetter | 2018-05-05 | 1 | -2/+2 |
| | |||||
* | Fix StopIteration raising for python3.7 (#534) | HoverHell | 2018-04-24 | 1 | -15/+24 |
| | | | | | | Because we don't support Python 2 any longer in the master branch, we can return values from generators to signal that we want to throw a StopIteration, without actually raising the StopIteration itself. | ||||
* | Fix contextmanager transform for nested contextmanagers | Bryce Guinta | 2018-03-05 | 1 | -1/+4 |
| | | | | Close PyCQA/pylint#1746 | ||||
* | Remove Python 2 branches, assume we always run on Python 3 | Claudiu Popa | 2018-02-21 | 1 | -4/+2 |
| | |||||
* | Filter non-inferables nodes when inferring binary operations | Claudiu Popa | 2017-12-15 | 1 | -1/+2 |
| | | | | Close #467 | ||||
* | Public facing node documentation | Ashley Whetter | 2017-11-05 | 1 | -0/+1 |
| | |||||
* | Fix an inference for trying to unpack Uninferable value in context manager ↵ | Łukasz Rogalski | 2017-05-22 | 1 | -0/+5 |
| | | | | | | (#429) Closes PyCQA/pylint#1463 | ||||
* | Fix assigned_stmts() for AnnAssign nodes without value (#420) | Łukasz Rogalski | 2017-04-02 | 1 | -1/+9 |
| | | | | Fixes #419 and PyCQA/pylint#1389 |