Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use new style super when applicablesimplification-for-python3.6-code | Pierre Sassoulas | 2021-02-17 | 5 | -5/+5 |
| | |||||
* | Remove IOError that are an alias to OSError see PEP3151 | Pierre Sassoulas | 2021-02-17 | 2 | -2/+2 |
| | |||||
* | Remove redundant open mode 'r' in opens | Pierre Sassoulas | 2021-02-17 | 3 | -4/+4 |
| | |||||
* | Remove old future import that are no longer required | Pierre Sassoulas | 2021-02-17 | 2 | -3/+0 |
| | |||||
* | Use set litteral when possible | Pierre Sassoulas | 2021-02-17 | 2 | -3/+3 |
| | |||||
* | Move from % syntax to format or f-strings | Pierre Sassoulas | 2021-02-17 | 25 | -218/+164 |
| | | | | This is possible with python 3.6 | ||||
* | Remove the # coding, since PEP3120 the default is UTF8 | Pierre Sassoulas | 2021-02-17 | 37 | -37/+1 |
| | |||||
* | Merge pull request #894 from hippo91/astroid_2.5_testastroid-2.5 | hippo91 | 2021-02-15 | 69 | -28/+93 |
|\ | | | | | Astroid 2.5 test | ||||
| * | Update copyright notice | hippo91 | 2021-02-15 | 67 | -25/+88 |
| | | |||||
| * | Prepare version 2.5 | hippo91 | 2021-02-15 | 2 | -3/+5 |
|/ | |||||
* | Move the unit test to unittest_brain because it needs six | hippo91 | 2021-02-12 | 2 | -28/+28 |
| | |||||
* | The node.bases has not to be tweaked otherwise leads to false positive ↵ | hippo91 | 2021-02-12 | 2 | -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 formatting | hippo91 | 2021-02-10 | 1 | -15/+7 |
| | |||||
* | Adds an entry | hippo91 | 2021-02-10 | 1 | -0/+4 |
| | |||||
* | Adds docstring and reformat attr_fset method | hippo91 | 2021-02-10 | 1 | -11/+15 |
| | |||||
* | Adds a test for property setter | hippo91 | 2021-02-10 | 1 | -1/+10 |
| | |||||
* | In the attr_fset method, retrieve the FunctionDef corresponding to setter ↵ | hippo91 | 2021-02-10 | 1 | -13/+20 |
| | | | | property and then infer the result of a call to this function | ||||
* | Back to original attr_fget definition | hippo91 | 2021-02-10 | 1 | -13/+1 |
| | |||||
* | Unify the way property arguments are declared | hippo91 | 2021-02-10 | 1 | -1/+13 |
| | |||||
* | Setting hard the arguments of method property setter | hippo91 | 2021-02-10 | 1 | -2/+13 |
| | |||||
* | Adds the attr_fset property | hippo91 | 2021-02-10 | 1 | -0/+22 |
| | |||||
* | Merge pull request #889 from hippo91/dgilman-master | hippo91 | 2021-02-07 | 21 | -175/+67 |
|\ | | | | | Thanks a lot @dgilman | ||||
| * | Adds missing include | hippo91 | 2021-02-07 | 1 | -0/+1 |
| | | |||||
| * | Merge branch 'master' of https://github.com/dgilman/astroid into dgilman-master | hippo91 | 2021-02-07 | 15 | -16/+360 |
| |\ | |||||
| | * | Merge branch 'master' into master | hippo91 | 2021-02-07 | 15 | -16/+360 |
| | |\ | |_|/ |/| | | |||||
* | | | Corrected the parent of function type comment nodes | Ashley Whetter | 2021-02-07 | 3 | -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 Migneault | 2021-02-07 | 3 | -0/+127 |
| | | | | | | | | | Closes #713 | ||||
* | | | Julien palard mdk/class getitem (#885) | hippo91 | 2021-01-24 | 3 | -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_clean | hippo91 | 2021-01-24 | 6 | -11/+20 |
|\ \ \ | | | | | | | | | Sum and multiply clean | ||||
| * \ \ | Merge branch 'sum_and_multiply' of https://github.com/hippo91/astroidsum_and_multiply | hippo91 | 2021-01-23 | 6 | -11/+20 |
| |\ \ \ |/ / / / | |||||
| * | | | Merge branch 'master' into sum_and_multiply | hippo91 | 2020-06-20 | 150 | -1599/+1959 |
| |\ \ \ | |||||
| * \ \ \ | Merge branch 'master' into sum_and_multiply | hippo91 | 2019-12-30 | 3 | -0/+16 |
| |\ \ \ \ | |||||
| * | | | | | Corrects the use of numpy.multiply function | hippo91 | 2019-12-30 | 1 | -1/+1 |
| | | | | | | |||||
| * | | | | | Added an entry | hippo91 | 2019-12-30 | 1 | -0/+5 |
| | | | | | | |||||
| * | | | | | Updates two tests that deal with the number of visits and the context.path | hippo91 | 2019-12-30 | 1 | -2/+3 |
| | | | | | | |||||
| * | | | | | Turns the context.path from a set to a dict which values are the number of ↵ | hippo91 | 2019-12-30 | 1 | -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 ↵ | hippo91 | 2019-12-30 | 1 | -4/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | not [array, Uninferable] because it could lead to false negatives. | ||||
| * | | | | | Add the test of functions add and multiply | hippo91 | 2019-12-28 | 1 | -0/+2 |
| | | | | | | |||||
| * | | | | | Adds two missing ufunc instances (add and multiply) | hippo91 | 2019-12-28 | 1 | -0/+2 |
| | | | | | | |||||
* | | | | | | Merge pull request #883 from hippo91/bug_pylint_4001 | hippo91 | 2021-01-23 | 3 | -0/+103 |
|\ \ \ \ \ \ | | | | | | | | | | | | | | | Bug pylint 4001 | ||||
| * | | | | | | Corrects a comment concerning node type as suggested by @PIerre-Sassoulas | hippo91 | 2021-01-23 | 1 | -1/+1 |
| | | | | | | | |||||
| * | | | | | | Defines PY39 variable | hippo91 | 2021-01-20 | 1 | -1/+4 |
| | | | | | | | |||||
| * | | | | | | Formatting according to black | hippo91 | 2021-01-20 | 2 | -10/+4 |
| | | | | | | | |||||
| * | | | | | | Adds an entry | hippo91 | 2021-01-19 | 1 | -0/+3 |
| | | | | | | | |||||
| * | | | | | | Adds doc | hippo91 | 2021-01-19 | 2 | -9/+45 |
| | | | | | | | |||||
| * | | | | | | Deletes unused import | hippo91 | 2021-01-19 | 1 | -3/+0 |
| | | | | | | | |||||
| * | | | | | | Adds unittest for brain_type module | hippo91 | 2021-01-18 | 1 | -0/+27 |
| | | | | | | | |||||
| * | | | | | | Adds a brain to mock the __class_getitem__ method on the `type` class (only ↵ | hippo91 | 2021-01-18 | 1 | -0/+43 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | with python3.9) | ||||
* | | | | | | | Merge pull request #882 from Polyconseil/dbaty/subprocess_popen_class_getitem | hippo91 | 2021-01-23 | 3 | -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.9 | Damien Baty | 2021-01-18 | 3 | -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'>> |