summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Corrected the parent of function type comment nodesfix_851Ashley Whetter2021-01-313-4/+24
| | | | | | | These nodes used to be parented to their original ast.FunctionDef parent but are now correctly parented to their astroid.FunctionDef parent. Closes #851
* Julien palard mdk/class getitem (#885)hippo912021-01-243-3/+26
| | | | | | | | | | | | | | | * 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 pull request #884 from hippo91/sum_and_multiply_cleanhippo912021-01-246-11/+20
|\ | | | | Sum and multiply clean
| * Merge branch 'sum_and_multiply' of https://github.com/hippo91/astroidsum_and_multiplyhippo912021-01-236-11/+20
| |\ |/ /
| * Merge branch 'master' into sum_and_multiplyhippo912020-06-20150-1599/+1959
| |\
| * \ Merge branch 'master' into sum_and_multiplyhippo912019-12-303-0/+16
| |\ \
| * | | Corrects the use of numpy.multiply functionhippo912019-12-301-1/+1
| | | |
| * | | Added an entryhippo912019-12-301-0/+5
| | | |
| * | | Updates two tests that deal with the number of visits and the context.pathhippo912019-12-301-2/+3
| | | |
| * | | 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.
| * | | Insures that numpy functions returning arrays are inferred only as array and ↵hippo912019-12-301-4/+2
| | | | | | | | | | | | | | | | not [array, Uninferable] because it could lead to false negatives.
| * | | Add the test of functions add and multiplyhippo912019-12-281-0/+2
| | | |
| * | | Adds two missing ufunc instances (add and multiply)hippo912019-12-281-0/+2
| | | |
* | | | Merge pull request #883 from hippo91/bug_pylint_4001hippo912021-01-233-0/+103
|\ \ \ \ | | | | | | | | | | 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-202-10/+4
| | | | |
| * | | | Adds an entryhippo912021-01-191-0/+3
| | | | |
| * | | | Adds dochippo912021-01-192-9/+45
| | | | |
| * | | | Deletes unused importhippo912021-01-191-3/+0
| | | | |
| * | | | Adds unittest for brain_type modulehippo912021-01-181-0/+27
| | | | |
| * | | | Adds a brain to mock the __class_getitem__ method on the `type` class (only ↵hippo912021-01-181-0/+43
| | | | | | | | | | | | | | | | | | | | with python3.9)
* | | | | Merge pull request #882 from Polyconseil/dbaty/subprocess_popen_class_getitemhippo912021-01-233-0/+18
|\ \ \ \ \ | |/ / / / |/| | | | brain: Add `__class_getitem__` to `subprocess.Popen` starting from Python 3.9
| * | | | brain: Add `__class_getitem__` to `subprocess.Popen` starting from Python 3.9Damien Baty2021-01-183-0/+18
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-013-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | 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-013-0/+20
| | | | | | | | | | | | | | | | Close #866
* | | | Fix a bug for dunder methods inference of function objectsClaudiu Popa2020-12-303-0/+16
| | | | | | | | | | | | | | | | Fixes #819
* | | | Merge pull request #873 from hippo91/bug_pylint_3856hippo912020-12-305-1/+12
|\ \ \ \ | | | | | | | | | | Bug pylint 3856
| * \ \ \ Merge branch 'master' into bug_pylint_3856hippo912020-12-302-1/+20
| |\ \ \ \ | |/ / / / |/| | | |
* | | | | Merge pull request #869 from hippo91/fix_deprecated_importlib_methodshippo912020-12-302-1/+19
|\ \ \ \ \ | | | | | | | | | | | | Fix deprecated importlib methods
| * | | | | 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-2972-62/+156
| |\ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Reformated according to blackhippo912020-12-241-1/+5
| | | | | |
| * | | | | Adds an entryhippo912020-12-241-0/+4
| | | | | |
| * | | | | 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
| | | | | |
| | * | | | Adds a note dealing with numpy version 1.18 and the __getattr__ methodhippo912020-12-291-1/+2
| | | | | |
| | * | | | Adds an entryhippo912020-12-291-0/+3
| | | | | |
| | * | | | Add the function random that is an alias of random_samplehippo912020-12-292-0/+2
| | | | | |
| | * | | | Adds the ufunc degrees and radians testshippo912020-12-291-0/+2
| | | | | |
| | * | | | Adds the ufunc degrees and radianshippo912020-12-291-0/+2
| |/ / / / |/| | | |
* | | | | Merge pull request #872 from hippo91/astroid_2.5.0hippo912020-12-2970-49/+113
|\ \ \ \ \ | | | | | | | | | | | | Astroid 2.5.0
| * | | | | Do not set the release date until it has been really released.hippo912020-12-291-1/+2
| | | | | |
| * | | | | Removes insecable whitespaceshippo912020-12-291-8/+8
| | | | | |
| * | | | | Formatting according to blackhippo912020-12-281-8/+8
| | | | | |