Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Disable false positive useless-suppression | Pierre Sassoulas | 2021-04-24 | 1 | -2/+2 |
| | | | | See https://github.com/PyCQA/pylint/issues/4212 | ||||
* | Enable checks for and fix useless suppression | Pierre Sassoulas | 2021-04-19 | 1 | -8/+3 |
| | |||||
* | Add an isort configuration in setup.cfg and apply it | Pierre Sassoulas | 2021-04-19 | 1 | -9/+4 |
| | | | | Except on astroid/__init__.py because of circular imports | ||||
* | Fix issue #891 | Pierre Sassoulas | 2021-04-10 | 1 | -1/+1 |
| | | | | Remove outdated COPYING and rename COPYING.LESSER | ||||
* | Upgrading pyupgrade in pre-commit configuration | Pierre Sassoulas | 2021-04-10 | 1 | -3/+3 |
| | |||||
* | Upgrade copyrite notice | Pierre Sassoulas | 2021-02-28 | 1 | -1/+3 |
| | |||||
* | Fix black issues | Marc Mueller | 2021-02-27 | 1 | -1/+1 |
| | |||||
* | Move from % syntax to format or f-strings | Pierre Sassoulas | 2021-02-21 | 1 | -4/+6 |
| | | | | This is possible with python 3.6 | ||||
* | Remove the # coding, since PEP3120 the default is UTF8 | Pierre Sassoulas | 2021-02-21 | 1 | -1/+0 |
| | |||||
* | Update copyright notice | hippo91 | 2021-02-15 | 1 | -2/+2 |
| | |||||
* | ``is_generator`` correctly considers `Yield` nodes in `AugAssign` nodes | Claudiu Popa | 2021-01-01 | 1 | -0/+5 |
| | | | | | | This fixes a false positive with the `assignment-from-no-return` pylint check. Close PyCQA/pylint#3904 | ||||
* | New copyright notices | hippo91 | 2020-12-27 | 1 | -1/+3 |
| | |||||
* | Explicitly return None on certain functions | Raphael Gaschignard | 2020-10-28 | 1 | -1/+1 |
| | | | | This fixes some `inconsistent-return-statement` pylint errors | ||||
* | Squash one-off inference utility functions to help reduce recursion errors ↵ | Bryce Guinta | 2020-06-22 | 1 | -5/+23 |
| | | | | | | (#804) This also makes debugging a lot simpler reducing the complexity of the function stack. | ||||
* | Fix a crash caused by a lookup of a monkey-patched method (#803) | Claudiu Popa | 2020-06-16 | 1 | -2/+1 |
| | | | | Close PyCQA/pylint#3686 | ||||
* | `FunctionDef.is_generator` properly handles `yield` nodes in `If` tests (#799) | Claudiu Popa | 2020-06-09 | 1 | -0/+5 |
| | | | Close PyCQA/pylint#3583 | ||||
* | `FunctionDef.is_generator` properly handles `yield` nodes in `While` tests | Claudiu Popa | 2020-05-12 | 1 | -0/+5 |
| | | | | Close PyCQA/pylint#3519 | ||||
* | Fix the new violations of super-without-arguments | Claudiu Popa | 2020-05-12 | 1 | -31/+27 |
| | |||||
* | Add missing copyright annotations for the past releases | Claudiu Popa | 2020-04-27 | 1 | -4/+8 |
| | |||||
* | Add posonlyargs_annotations to Arguments.get_children() | Claudiu Popa | 2020-03-28 | 1 | -0/+6 |
| | |||||
* | Add posonlyargs_annotations to Arguments.as_string() | Claudiu Popa | 2020-03-28 | 1 | -1/+7 |
| | |||||
* | Call super() for EvaluatedObject | Claudiu Popa | 2020-03-10 | 1 | -3/+5 |
| | |||||
* | Add a new EvaluatedObject container | Claudiu Popa | 2020-03-10 | 1 | -0/+34 |
| | | | | | | | | | 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. | ||||
* | ``NodeNG.bool_value()`` gained an optional ``context`` parameter | Claudiu Popa | 2020-03-05 | 1 | -5/+5 |
| | | | | | | | | | We need to pass an inference context downstream when inferring the boolean value of a node in order to prevent recursion errors and double inference. This fix prevents a recursion error with dask library. Close PyCQA/pylint#2985 | ||||
* | Fix unbound local error caused by 061aaebea2be2d21831ef687cc4ba4a25d953c65 | Claudiu Popa | 2020-01-12 | 1 | -1/+1 |
| | |||||
* | Can access positional only and keyword only argument type comments | Ashley Whetter | 2020-01-11 | 1 | -0/+32 |
| | |||||
* | ``nodes.Const.itered`` returns a list of ``Const`` nodes, not strings | Claudiu Popa | 2019-12-15 | 1 | -3/+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 | ||||
* | Allow inferring positional only arguments on Python 3.8 | Claudiu Popa | 2019-11-14 | 1 | -6/+8 |
| | |||||
* | All type comments have as parent the corresponding `astroid` node | Claudiu Popa | 2019-10-09 | 1 | -1/+3 |
| | | | | | | | Until now they had as parent the builtin `ast` node which meant we were operating with primitive objects instead of our own. Close PyCQA/pylint#3174 | ||||
* | Remove NodeNG.nearest method (#692) | kavins14 | 2019-09-10 | 1 | -27/+0 |
| | | | | | | The NodeNG.nearest method was not working properly as outlined in #691 and seem to not be in use at all across astroid and pylint. Close #691 | ||||
* | Update method docstring (#690) | kavins14 | 2019-09-08 | 1 | -6/+6 |
| | |||||
* | Relax the spreading of defaults to both positional only and positional or ↵ | Claudiu Popa | 2019-07-10 | 1 | -10/+4 |
| | | | | keywords arguments | ||||
* | Disable legit errors for too many parameters | Claudiu Popa | 2019-07-09 | 1 | -0/+3 |
| | |||||
* | Add support for finding positional only arguments using the Arguments APIs | Claudiu Popa | 2019-07-09 | 1 | -10/+15 |
| | |||||
* | Introduce a new argument to `Arguments` for storing the positional only ↵ | Claudiu Popa | 2019-07-09 | 1 | -0/+13 |
| | | | | | | | | | annotations The annotations were stored until now in `.annotations` and `kwonlyargs_annotations`, but given the addition of `posonlyargs`, we need to store the positional only annotations somewhere else as well. This new attribute should simplify the handling of annotations for both positional only and positional or keyword parameters. | ||||
* | Add support for positional only arguments in astroid for python 3.8 | Claudiu Popa | 2019-07-09 | 1 | -1/+32 |
| | |||||
* | Annotated AST follows PEP8 coding style when converted to string. | Łukasz Rogalski | 2019-06-22 | 1 | -2/+4 |
| | |||||
* | Add inference support to NamedExpr nodes | Claudiu Popa | 2019-06-02 | 1 | -0/+4 |
| | |||||
* | Add support for Python 3.8's `NamedExpr` nodes, which is part of assignment ↵ | Claudiu Popa | 2019-06-01 | 1 | -0/+25 |
| | | | | | | expressions. Close #674 | ||||
* | Mark Ellipsis as a constant for Python 3.8 | Claudiu Popa | 2019-06-01 | 1 | -2/+5 |
| | |||||
* | Can access per argument type comments (#667) | Ashley Whetter | 2019-05-14 | 1 | -0/+16 |
| | | | Close #665 | ||||
* | Improved builtin inference for ``tuple``, ``set``, ``frozenset``, ``list`` ↵ | Claudiu Popa | 2019-03-28 | 1 | -4/+11 |
| | | | | | | | | | | | and ``dict`` We were properly inferring these callables *only* if they had consts as values, but that is not the case most of the time. Instead we try to infer the values that their arguments can be and use them instead of assuming Const nodes all the time. Close PyCQA/pylint#2841 | ||||
* | Use a list to hold the statements to be filtered per node instead of keeping ↵ | Claudiu Popa | 2019-03-04 | 1 | -6/+8 |
| | | | | them in a dict | ||||
* | The last except handler wins when inferring variables bound in an except ↵ | Claudiu Popa | 2019-03-03 | 1 | -2/+14 |
| | | | | | | handler. Close PyCQA/pylint#2777 | ||||
* | Avoid statement deletion in the _filter_stmts method of the LookupMixin ↵ | hippo91 | 2019-01-23 | 1 | -2/+10 |
| | | | | | | | | | | | | | | class for PartialFunction In the case where the node is a PartialFunction and its name is the same as the current statement's name, avoid the statement deletion. The problem was that a call to a function that has been previously called vit a functools.partial was wrongly inferred. The bug comes from the _filter_stmts method of the LookupMixin class. The deletion of the current statement should not be made in the case where the node is an instance of the PartialFunction class and if the node's name is the same as the statement's name. This change also extracts PartialFunction from brain_functools into astroid.objects so that we remove a circular import problem. Close PyCQA/pylint#2588 | ||||
* | Add a method to the manager to retrieve the builtins module | Claudiu Popa | 2019-01-19 | 1 | -1/+1 |
| | |||||
* | Refactoring chained comparison (#636) | hippo91 | 2019-01-13 | 1 | -2/+1 |
| | | | | Reformat a chained comparison so that no more 'chained-comparison' warning is emitted from node_classe.py | ||||
* | Cache the result of get_assign_nodes | Claudiu Popa | 2018-10-10 | 1 | -4/+4 |
| | | | | | | | | The result is usually static, but we're hitting this function quite a lot for big projects such as pandas. This change is a matter of compromising between the amount of memory astroid needs for analysis (e.g. storing the results in memory) vs the wasted CPU time in calling the same function over and over. | ||||
* | Let formatting be handled by black | Claudiu Popa | 2018-10-02 | 1 | -1/+2 |
| | |||||
* | Initial formatting of astroid | Claudiu Popa | 2018-10-02 | 1 | -280/+418 |
| |