summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Use new style super when applicablesimplification-for-python3.6-codePierre Sassoulas2021-02-174-4/+4
|
* Remove redundant open mode 'r' in opensPierre Sassoulas2021-02-172-3/+3
|
* Remove old future import that are no longer requiredPierre Sassoulas2021-02-171-2/+0
|
* Move from % syntax to format or f-stringsPierre Sassoulas2021-02-1713-103/+68
| | | | This is possible with python 3.6
* Remove the # coding, since PEP3120 the default is UTF8Pierre Sassoulas2021-02-1717-17/+1
|
* Update copyright noticehippo912021-02-1525-13/+38
|
* Move the unit test to unittest_brain because it needs sixhippo912021-02-122-28/+28
|
* The node.bases has not to be tweaked otherwise leads to false positive ↵hippo912021-02-121-0/+28
| | | | 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.
* Adds a test for property setterhippo912021-02-101-1/+10
|
* Adds missing includehippo912021-02-071-0/+1
|
* Merge branch 'master' into masterhippo912021-02-075-7/+185
|\
| * Corrected the parent of function type comment nodesAshley Whetter2021-02-071-0/+13
| | | | | | | | | | | | | | 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/+84
| | | | | | Closes #713
| * Julien palard mdk/class getitem (#885)hippo912021-01-241-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-233-7/+8
| |\
| | * Merge branch 'master' into sum_and_multiplyhippo912020-06-2087-962/+725
| | |\
| | * \ Merge branch 'master' into sum_and_multiplyhippo912019-12-301-0/+6
| | |\ \
| | * | | Corrects the use of numpy.multiply functionhippo912019-12-301-1/+1
| | | | |
| | * | | Updates two tests that deal with the number of visits and the context.pathhippo912019-12-301-2/+3
| | | | |
| | * | | 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
| | | | |
| * | | | Merge pull request #883 from hippo91/bug_pylint_4001hippo912021-01-231-0/+36
| |\ \ \ \ | | | | | | | | | | | | Bug pylint 4001
| | * | | | Formatting according to blackhippo912021-01-201-2/+2
| | | | | |
| | * | | | Adds dochippo912021-01-191-0/+9
| | | | | |
| | * | | | Adds unittest for brain_type modulehippo912021-01-181-0/+27
| | | | | |
| * | | | | 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/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+14
| | | | | | | | | | | | | | | | | | | | Close #866
* | | | | Remove required_version for 3.6 and belowDavid Gilman2020-12-3111-88/+0
| | | | | | | | | | | | | | | | | | | | We are now guaranteed to be running on 3.6+
* | | | | Add tox support for six-less environmentsDavid Gilman2020-12-311-0/+7
| | | | |
* | | | | Remove six from astroidDavid Gilman2020-12-305-48/+33
|/ / / /
* | | | Fix a bug for dunder methods inference of function objectsClaudiu Popa2020-12-301-0/+11
| | | | | | | | | | | | | | | | Fixes #819
* | | | Add the function random that is an alias of random_samplehippo912020-12-291-0/+1
| | | |
* | | | Adds the ufunc degrees and radians testshippo912020-12-291-0/+2
| | | |
* | | | Back to original file after debugging sessionhippo912020-12-281-2/+1
| | | |
* | | | Adds debug msghippo912020-12-281-1/+2
| | | |
* | | | New copyright noticeshippo912020-12-2721-13/+27
| | | |
* | | | Do not crash when encountering starred assignments in enums.Claudiu Popa2020-12-261-0/+10
| | | | | | | | | | | | | | | | Close #835
* | | | Merge pull request #858 from hippo91/fix_python39_newhippo912020-12-131-0/+29
|\ \ \ \ | | | | | | | | | | Fix python39
| * | | | Thanks to the preceeding commit the inference is more precise for class ↵hippo912020-11-221-0/+29
| | | | | | | | | | | | | | | | | | | | decorated with dataclasses
* | | | | Merge pull request #857 from pkolbus/remove-imphippo912020-12-134-18/+23
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Remove dependency on imp. Many thanks @pkolbus and @degustaf !
| * | | | | Remove dependency on imp.Peter Kolbus2020-11-274-18/+23
| |/ / / /
* | | | | Fix formatting regressionTim Martin2020-10-161-9/+1
| | | | |
* | | | | Fix incorrect MRO being calculated for scoped multiple inheritanceTim Martin2020-10-131-0/+24
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | If a class inherits from two bases and the classes are expressed as a non-trivial expression such as qualified with a module name, classes after the first could not be inferred due to reusing the context object in _inferred_bases
* | | | Adds ndarray as rtype for T attribute.hippo912020-09-141-1/+1
| | | | | | | | | | | | Closes PyCQA/pylint#3387
* | | | Skip test for | in dictionaries due to PEP-584 in Python 3.9+ (#829)Karthikeyan Singaravelan2020-09-141-2/+6
| | | |
* | | | Squash one-off inference utility functions to help reduce recursion errors ↵Bryce Guinta2020-06-231-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (#804) This also makes debugging a lot simpler reducing the complexity of the function stack.
* | | | Separate string and bytes classes patching (#807)Claudiu Popa2020-06-232-8/+19
| | | | | | | | | | | | Fixes PyCQA/pylint#3599
* | | | Squash one-off inference utility functions to help reduce recursion errors ↵Bryce Guinta2020-06-221-1/+1
| |_|/ |/| | | | | | | | | | | | | | (#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 Popa2020-06-161-0/+19
| | | | | | | | | | | | Close PyCQA/pylint#3686