summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make sure the context has a callcontext before grabbing the arguments ↵revert-perf-affecting-changes-2Claudiu Popa2019-01-151-1/+1
| | | | information from it
* Pass a context in the places where we don't do that explicitlyClaudiu Popa2019-01-154-4/+7
|
* Use yield fromClaudiu Popa2019-01-151-2/+1
|
* Switch to using pytest.skipif instead of doing that manually in the test methodClaudiu Popa2019-01-151-4/+11
|
* Remove the tests disabled due to previous impl. of path copyingClaudiu Popa2019-01-142-6/+0
|
* Change the inner structure of a context and add a basic recursion detectionClaudiu Popa2019-01-145-29/+67
|
* Clear the global context after each testClaudiu Popa2019-01-1419-82/+112
|
* Switch to a global context by defaultClaudiu Popa2019-01-1413-166/+204
|
* Add missing contexts in brain filesClaudiu Popa2019-01-142-3/+7
|
* Allow passing a context to certain helpersClaudiu Popa2019-01-143-5/+7
|
* Set a context object when calling the delayed AssignAttr inferenceClaudiu Popa2019-01-141-3/+6
|
* Add branching flag to the clone() methodClaudiu Popa2019-01-147-56/+68
| | | | | | | | | We should not copy the inference path all the time, as that causes serious performance regressions on large libraries and on large inference paths. Unfortunately it's not obvious in which code paths we have to branch out and in which we should not. This commit introduces a flag, `branch_path`, which is used in inference to specify the points where a branching out is needed by creating a copy of the inference path of an inference context.
* Remove test that does not work actually work consistently on all Python versionsClaudiu Popa2019-01-141-3/+0
|
* Move infer_name_module() in pylint and remove it from hereClaudiu Popa2019-01-131-9/+0
|
* Prevent crashing when processing ``enums`` with mixed single and double quotes.Claudiu Popa2019-01-133-1/+29
| | | | Close PyCQA/pylint#2676
* Refactoring chained comparison (#636)hippo912019-01-131-2/+1
| | | | Reformat a chained comparison so that no more 'chained-comparison' warning is emitted from node_classe.py
* Revert path copying in InferenceContext()Claudiu Popa2018-12-304-5/+10
| | | | | | | | While copying the path solves some inference issues, it also leads to horrenduous performance hits on large libraries such as pandas. We still want to have the path copying, but we need a better understanding on why that is needed, as well as a change on how we operate with the inference contexts.
* Make sure the test does not crash if the directory already existsClaudiu Popa2018-12-301-4/+7
|
* ``typing`` types have the `__args__` property. Close PyCQA/pylint#2419Claudiu Popa2018-12-183-0/+18
|
* Extend detection of classes defined with attrTomas Gavenciak2018-12-123-6/+24
|
* Remove else after return/raiseTomas Gavenciak2018-12-112-5/+4
|
* Add missing _ssl constant. Close PyCQA/pylint#2629Claudiu Popa2018-12-041-0/+1
|
* Fix a bug where an Attribute used as a base class was triggering a crashClaudiu Popa2018-12-042-0/+6
| | | | Close #626
* Pin typed_ast so a new release won't break the pylint's pragmasClaudiu Popa2018-11-301-1/+1
|
* Added special support for `enum.IntFlag`Claudiu Popa2018-11-293-2/+43
| | | | Close PyCQA/pylint#2534
* Use a string for the name of the enum instead of grabbing it as a variableClaudiu Popa2018-11-291-1/+1
|
* Add reversed() to Enum classesClaudiu Popa2018-11-281-0/+5
|
* Add new Popen kwarg 'text' in Python 3.7Peter Talley2018-11-251-2/+14
|
* Prepare 2.1.0astroid-2.1.0Claudiu Popa2018-11-252-22/+19
|
* textHQupgradeHQ2018-10-261-0/+5
|
* Fix typoJeff Widman2018-10-261-1/+1
|
* Multiple "value" or "slice" values on subscript inference.Daniel Martin2018-10-153-46/+81
| | | | Fixes astroid bug #614.
* fix hashlib.blake2* signaturesDavid Poirier2018-10-152-3/+8
|
* Don't call inference in the functools transformClaudiu Popa2018-10-111-11/+9
|
* Revert "Pass a parent in raw_building when building a new Function or Class"Claudiu Popa2018-10-112-36/+28
| | | | This reverts commit fc407efe58605454e12351e2114614726a4b1658.
* Reuse the cls variable inferred earlierClaudiu Popa2018-10-111-1/+1
|
* Pass a parent in raw_building when building a new Function or ClassClaudiu Popa2018-10-112-28/+36
|
* Replace a nested for loop with a product() callClaudiu Popa2018-10-111-15/+8
|
* Disable useless-supression for nowClaudiu Popa2018-10-111-6/+0
| | | | It's getting annoying from time to time as it seems to be flaky.
* Lose an indentation level in ancestors() by continuing if recursing wasn't ↵Claudiu Popa2018-10-111-9/+10
| | | | passed
* Update some leftover docstringsClaudiu Popa2018-10-111-5/+9
|
* Use yield fromClaudiu Popa2018-10-102-4/+2
|
* YES is gone, we're using Uninferable for quite some time nowClaudiu Popa2018-10-102-5/+1
|
* Remove Python 2 branchesClaudiu Popa2018-10-102-26/+14
|
* Cache the result of get_assign_nodesClaudiu Popa2018-10-103-9/+17
| | | | | | | | The result is usually static, but we're hitting this function quite a lot for big projects such as pandas. This change is a matter of compromising between the amount of memory astroid needs for analysis (e.g. storing the results in memory) vs the wasted CPU time in calling the same function over and over.
* Use generators for string joining instead of creating temporary listsClaudiu Popa2018-10-102-17/+17
|
* Add some caching to the transforms and skip non nodes in visit_genericClaudiu Popa2018-10-101-3/+10
|
* Use None as a sentinelClaudiu Popa2018-10-101-1/+1
|
* Remove some unneeded comments and use yield fromClaudiu Popa2018-10-101-6/+2
|
* Use itertools.chain to join multiple generators togetherClaudiu Popa2018-10-101-3/+8
|