summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Merged in jayvdb/astroid/use_print_function (pull request #91)Claudiu Popa2015-10-191-1/+1
|\ | | | | | | Fix SyntaxError on Python 2 for print function
| * Merged in jayvdb/astroid/print_statement (pull request #90)Claudiu Popa2015-10-190-0/+0
| |\ | | | | | | | | | Replace __future__.print_statement with print_function
| * | Replace __future__.print_statement with print_functionprint_statementJohn Vandenberg2015-10-191-1/+1
| |/ | | | | | | | | | | 1c35a97 fixed Python 2 only print statements, and imported a mix of __future__.print_function and __future__.print_statement. 1826d98 fixed most of them, however this one still remains.
* | Fix SyntaxError on Python 2 for print functionuse_print_functionJohn Vandenberg2015-10-191-0/+1
|/
* Don't reinstall astroid, use the one that's already available.Claudiu Popa2015-10-161-2/+0
|
* Fix Arguments' _other_fieldsCeridwen2015-10-121-1/+1
|
* Move proxy_alias function to util.pyClaudiu Popa2015-10-113-28/+32
|
* Remove doctype and future imports which aren't useful.Claudiu Popa2015-10-1110-15/+1
|
* Remove unused variable.Claudiu Popa2015-10-111-1/+0
|
* Move decorators from bases to decorators module.Claudiu Popa2015-10-115-76/+81
|
* Move bases.NodeNG and bases.Statement in node_classesClaudiu Popa2015-10-114-538/+537
| | | | | | We're doing this in order to reduce the dependency hell which occurs when a module such as bases.py wants to use classes defined in node_classes.
* Remove trailing whitespace.Claudiu Popa2015-10-091-1/+1
|
* The functional form of Enum returns a class, not an instance.Claudiu Popa2015-10-092-1/+13
|
* Support PEP 448 unpackings in dict calls.Claudiu Popa2015-10-082-11/+47
|
* Make duplicated_kwargs a public API.Claudiu Popa2015-10-082-4/+8
|
* Fix pylint warnings.Claudiu Popa2015-10-071-12/+11
|
* Change arguments.ArgumentsInference to arguments.CallSiteClaudiu Popa2015-10-073-33/+155
| | | | | | This new class can be used to obtain the already unpacked arguments and keyword arguments that a call site uses, which is especially useful when some of arguments are packed into Starred nodes.
* Change the signature of the ArgumentInference class to accept directly the ↵Claudiu Popa2015-10-072-10/+13
| | | | arguments and the keywords of a call site.
* Add brain tips for PyQt signals for supporting emit / connect and disconnect ↵Claudiu Popa2015-10-063-22/+57
| | | | methods on them
* Remove trailing whitespace.Claudiu Popa2015-10-061-1/+0
|
* Add support for looking up into DictUnpack's value in Dict.getitemClaudiu Popa2015-10-062-0/+15
|
* Remove the value from the DictUnpack node, since it's used mostly to ↵Claudiu Popa2015-10-062-10/+1
| | | | represent the ** operation.
* Fix pylint errors.Claudiu Popa2015-10-062-8/+8
|
* Add a new node, DictUnpack, for representing the unpacking of a dict using ↵Claudiu Popa2015-10-066-9/+71
| | | | | | | | | PEP 448 This is a different approach than what the builtin ast module does, since it just uses None to represent this kind of operation, which seems conceptually wrong, due to the fact the AST contains non-AST nodes. Closes issue #206.
* Remove trailing whitespace.Claudiu Popa2015-10-031-1/+1
|
* Move objects.Slice back into nodes.SliceClaudiu Popa2015-10-034-49/+37
| | | | | | We did this because objects.Slice had more capabilities than nodes.Slice, such as inferring the slice attributes (start, stop, step) and it was used mostly for inferring the slice() builtin.
* Don't wrap instance's arguments into a Const, instead let the original index ↵Claudiu Popa2015-10-032-19/+28
| | | | | | | | object to be used. This prevents a crash when the original index object is a slice object, which was wrapped inadvertendly in a Const node, leading to a crash later on if the said object was inferred. Closes issue #200.
* Add a test for issue #188, which was triggered because the transforms ↵Claudiu Popa2015-10-031-0/+25
| | | | weren't executed in a separated step. Closes issue #188.
* Fix a crash which occurred when inferring unary operands which yielded ↵Claudiu Popa2015-10-032-0/+10
| | | | objects which weren't callable.
* Skip objects which aren't callable when inferring an instance's call result.Claudiu Popa2015-10-032-1/+17
|
* Make context an optional argument for BoundMethod.infer_call_result.Claudiu Popa2015-10-031-1/+3
|
* Ignore non-callables when looking for special method implementations of bool ↵Claudiu Popa2015-10-032-1/+22
| | | | | | | | methods This commit verifies what a special method actually is and if it's not a callable, then we return an YES object, since there's a big chance to not make sense of the instance's boolean value.
* Import test from pylint regarding a crash that used to occur a long time ago.Claudiu Popa2015-09-301-0/+10
|
* Import test for pylint regarding context inference in relation with factory ↵Claudiu Popa2015-09-291-0/+19
| | | | methods.
* Fix a crash which occurred when extra_decorators was considering non-class ↵Claudiu Popa2015-09-292-1/+27
| | | | level assignments to the same name as decorator calls.
* Remove InferenceContext's __repr__ implementation, since it makes it ↵Claudiu Popa2015-09-281-6/+0
| | | | unusable to debug in a repl.
* Add test for issue #183.Claudiu Popa2015-09-271-0/+9
|
* Hopefully actually fix #185Ceridwen2015-09-262-2/+13
|
* Remove trailing whitespace.Claudiu Popa2015-09-262-3/+3
|
* Add a separate Slice object, which is used when inferring the slice builtin callClaudiu Popa2015-09-263-3/+74
| | | | | | | | | | | | | | | | | | | | We do this because of an internal distinction we're making between AST nodes and inference objects. The following distinction might help for understanding better where an AST node is used and where an inference object is used: * if the AST node can be used on its own, e.g. List, Tuple, etc, then the AST can be used in the inference. They have a syntactic display and can be written on its own, e.g. "[]" is a valid list. That's why the inference of their respective builtins (list, tuple, set etc) returns an AST node when inferring. * if the AST node is part of syntax and can't be used on its own. This is the case for slices for instance, e.g "[2:3:4]". In this case, trying to write "2:3:4" on its own will fail. The respective builtin (slice) returns a custom object when inferring and not an AST node per se.
* remove the test env for..testing purposes.Claudiu Popa2015-09-261-6/+0
|
* Fix pylint errors.Claudiu Popa2015-09-262-5/+3
|
* Use the object.__new__ decorator to create a singleton instance of the YES ↵Claudiu Popa2015-09-261-5/+3
| | | | object.
* Fix a regression with the reraise of AstroidBuildingException.Claudiu Popa2015-09-261-1/+6
| | | | | | The entire original exception object needs to be passed to AstroidBuildingException in builder.AstroidBuilder._file_build, since pylint uses this as an introspection method, in order to find what error happened.
* Revert the tox change, since drone.io fails.Claudiu Popa2015-09-261-1/+1
|
* Make instancecheck a private function.Claudiu Popa2015-09-261-2/+2
|
* Merged in ceridwenv/astroid (pull request #88)Claudiu Popa2015-09-2612-36/+59
|\ | | | | | | Use six.reraise to avoid losing tracebacks for simple cases
| * Add helper function for reraising exceptionsCeridwen2015-09-2111-96/+47
| |
| * Use six.reraise to avoid losing tracebacks for simple casesCeridwen2015-09-2111-36/+108
| |
* | Add numpy transform tip for understanding numpy's calculation of __all__.Claudiu Popa2015-09-262-3/+19
| |