summaryrefslogtreecommitdiff
path: root/astroid
Commit message (Collapse)AuthorAgeFilesLines
* Use new style super when applicablesimplification-for-python3.6-codePierre Sassoulas2021-02-171-1/+1
|
* Remove IOError that are an alias to OSError see PEP3151Pierre Sassoulas2021-02-172-2/+2
|
* Remove redundant open mode 'r' in opensPierre Sassoulas2021-02-171-1/+1
|
* Remove old future import that are no longer requiredPierre Sassoulas2021-02-171-1/+0
|
* Use set litteral when possiblePierre Sassoulas2021-02-171-2/+2
|
* Move from % syntax to format or f-stringsPierre Sassoulas2021-02-1711-114/+95
| | | | This is possible with python 3.6
* Remove the # coding, since PEP3120 the default is UTF8Pierre Sassoulas2021-02-1719-19/+0
|
* Update copyright noticehippo912021-02-1541-12/+48
|
* Prepare version 2.5hippo912021-02-151-1/+3
|
* The node.bases has not to be tweaked otherwise leads to false positive ↵hippo912021-02-121-1/+0
| | | | unused-import due to the fact that six.with_metaclass is not consumed. Adds a unittest to check that bases attribute holds a call node and that ancestors attributes returns the correct class hierarchy.
* pylint + black formattinghippo912021-02-101-15/+7
|
* Adds docstring and reformat attr_fset methodhippo912021-02-101-11/+15
|
* In the attr_fset method, retrieve the FunctionDef corresponding to setter ↵hippo912021-02-101-13/+20
| | | | property and then infer the result of a call to this function
* Back to original attr_fget definitionhippo912021-02-101-13/+1
|
* Unify the way property arguments are declaredhippo912021-02-101-1/+13
|
* Setting hard the arguments of method property setterhippo912021-02-101-2/+13
|
* Adds the attr_fset propertyhippo912021-02-101-0/+22
|
* Merge branch 'master' into masterhippo912021-02-079-8/+137
|\
| * Corrected the parent of function type comment nodesAshley Whetter2021-02-071-4/+4
| | | | | | | | | | | | | | These nodes used to be parented to their original ast.FunctionDef parent but are now correctly parented to their astroid.FunctionDef parent. Closes #851
| * Add support of 'six.with_metaclass' (#841)Francis Charette Migneault2021-02-071-0/+39
| | | | | | Closes #713
| * Julien palard mdk/class getitem (#885)hippo912021-01-241-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add missing __class_getitem__ to deque. * The __class_getitem__ method is added only for python versions above 3.9 * Adds two tests that ensure that __class_getitem__ method is not present for python versions prior to 3.9 but present for python versions above 3.9 * Reorganizes * Adds an entry * Add Julien Palard in copyright Co-authored-by: Julien Palard <julien@palard.fr>
| * Merge branch 'sum_and_multiply' of https://github.com/hippo91/astroidsum_and_multiplyhippo912021-01-232-4/+8
| |\
| | * Merge branch 'master' into sum_and_multiplyhippo912020-06-2057-618/+1046
| | |\
| | * \ Merge branch 'master' into sum_and_multiplyhippo912019-12-301-0/+6
| | |\ \
| | * | | Turns the context.path from a set to a dict which values are the number of ↵hippo912019-12-301-4/+6
| | | | | | | | | | | | | | | | | | | | times the node has been visited. The push method return True depending on a condition of the number of visits.
| | * | | Adds two missing ufunc instances (add and multiply)hippo912019-12-281-0/+2
| | | | |
| * | | | Merge pull request #883 from hippo91/bug_pylint_4001hippo912021-01-231-0/+64
| |\ \ \ \ | | | | | | | | | | | | Bug pylint 4001
| | * | | | Corrects a comment concerning node type as suggested by @PIerre-Sassoulashippo912021-01-231-1/+1
| | | | | |
| | * | | | Defines PY39 variablehippo912021-01-201-1/+4
| | | | | |
| | * | | | Formatting according to blackhippo912021-01-201-8/+2
| | | | | |
| | * | | | Adds dochippo912021-01-191-9/+36
| | | | | |
| | * | | | Deletes unused importhippo912021-01-191-3/+0
| | | | | |
| | * | | | Adds a brain to mock the __class_getitem__ method on the `type` class (only ↵hippo912021-01-181-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | with python3.9)
| * | | | | brain: Add `__class_getitem__` to `subprocess.Popen` starting from Python 3.9Damien Baty2021-01-181-0/+7
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is necessary for pylint to detect that `subprocess.Popen` is subscriptable, starting from Python 3.9 (see PyCQA/pylint#4034). $ python3.9 >>> import subprocess >>> subprocess.Popen.__class_getitem__ <bound method GenericAlias of <class 'subprocess.Popen'>>
| * | | | ``is_generator`` correctly considers `Yield` nodes in `AugAssign` nodesClaudiu Popa2021-01-011-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a false positive with the `assignment-from-no-return` pylint check. Close PyCQA/pylint#3904
| * | | | Fix a crash in inference caused by `Uninferable` container elementsClaudiu Popa2021-01-011-0/+2
| | | | | | | | | | | | | | | | | | | | Close #866
* | | | | Remove Python 3.5 supportDavid Gilman2020-12-311-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | pytest very recently dropped support for it, and if we can't run our tests on the platform we can't really support it
* | | | | Remove six from astroidDavid Gilman2020-12-304-19/+5
|/ / / /
* | | | Fix a bug for dunder methods inference of function objectsClaudiu Popa2020-12-301-0/+1
| | | | | | | | | | | | | | | | Fixes #819
* | | | Merge branch 'master' into bug_pylint_3856hippo912020-12-301-1/+16
|\ \ \ \
| * | | | Update astroid/interpreter/_import/spec.py hippo912020-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Taking into account @GergelyKalmar suggestion Co-authored-by: Gergely Kalmár <gergely.kalmar@logikal.jp>
| * | | | Update astroid/interpreter/_import/spec.py hippo912020-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Taking into account @GergelyKalmar suggestion Co-authored-by: Gergely Kalmár <gergely.kalmar@logikal.jp>
| * | | | Update astroid/interpreter/_import/spec.py hippo912020-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Taking into account @GergelyKalmar suggestion Co-authored-by: Gergely Kalmár <gergely.kalmar@logikal.jp>
| * | | | Update astroid/interpreter/_import/spec.py hippo912020-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Taking into account @GergelyKalmar suggestion Co-authored-by: Gergely Kalmár <gergely.kalmar@logikal.jp>
| * | | | Merge branch 'master' into fix_deprecated_importlib_methodshippo912020-12-2948-43/+100
| |\ \ \ \
| * | | | | Reformated according to blackhippo912020-12-241-1/+5
| | | | | |
| * | | | | Adds copyright noticehippo912020-12-241-0/+1
| | | | | |
| * | | | | Adds docstring to the _precache_zipimporters functionhippo912020-12-241-0/+10
| | | | | |
| * | | | | Changes the return value of the _precache_zipimporters function so that only ↵hippo912020-12-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | zipimporter instances are returned.
* | | | | | Formatting according to blackhippo912020-12-291-2/+2
| | | | | |