summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Use new style super when applicablesimplification-for-python3.6-codePierre Sassoulas2021-02-175-5/+5
|
* Remove IOError that are an alias to OSError see PEP3151Pierre Sassoulas2021-02-172-2/+2
|
* Remove redundant open mode 'r' in opensPierre Sassoulas2021-02-173-4/+4
|
* Remove old future import that are no longer requiredPierre Sassoulas2021-02-172-3/+0
|
* Use set litteral when possiblePierre Sassoulas2021-02-172-3/+3
|
* Move from % syntax to format or f-stringsPierre Sassoulas2021-02-1725-218/+164
| | | | This is possible with python 3.6
* Remove the # coding, since PEP3120 the default is UTF8Pierre Sassoulas2021-02-1737-37/+1
|
* Merge pull request #894 from hippo91/astroid_2.5_testastroid-2.5hippo912021-02-1569-28/+93
|\ | | | | Astroid 2.5 test
| * Update copyright noticehippo912021-02-1567-25/+88
| |
| * Prepare version 2.5hippo912021-02-152-3/+5
|/
* 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-122-1/+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.
* pylint + black formattinghippo912021-02-101-15/+7
|
* Adds an entryhippo912021-02-101-0/+4
|
* Adds docstring and reformat attr_fset methodhippo912021-02-101-11/+15
|
* Adds a test for property setterhippo912021-02-101-1/+10
|
* 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 pull request #889 from hippo91/dgilman-masterhippo912021-02-0721-175/+67
|\ | | | | Thanks a lot @dgilman
| * Adds missing includehippo912021-02-071-0/+1
| |
| * Merge branch 'master' of https://github.com/dgilman/astroid into dgilman-masterhippo912021-02-0715-16/+360
| |\
| | * Merge branch 'master' into masterhippo912021-02-0715-16/+360
| | |\ | |_|/ |/| |
* | | Corrected the parent of function type comment nodesAshley Whetter2021-02-073-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
* | | Add support of 'six.with_metaclass' (#841)Francis Charette Migneault2021-02-073-0/+127
| | | | | | | | | Closes #713
* | | 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'>>