summaryrefslogtreecommitdiff
path: root/astroid
Commit message (Collapse)AuthorAgeFilesLines
* Ignore exceptions raised by gi.require_versionpygobject-require_versionDavid Shea2015-07-081-2/+6
|
* Duplicate calls to gi.require_version.David Shea2015-07-081-2/+30
| | | | | | | | gobject-introspection uses gi.require_version to choose which version of a library to import from gi.repository, and pygobject now issues a warning if gi.require_version is not used. Find calls to require_version and duplicate them in py2gi.py so that the version data is present in the context of the import.
* Understand metaclasses added with six.add_metaclass decorator. Closes issue ↵Claudiu Popa2015-07-072-1/+52
| | | | #129.
* Test Super.pytype, Super.display_type and Super.nameClaudiu Popa2015-07-071-0/+11
|
* Fix the body of namedtuple._replace: return the current self and don't ↵Claudiu Popa2015-07-062-5/+4
| | | | actually call self._make, since it's impossible to understand it.
* Move pyreverse specific modules and functionality back into pyreverseClaudiu Popa2015-07-035-212/+8
| | | | | We moved astroid.manager.Project and astroid.manager.Manager.project_from_files to pyreverse.inspector.
* Infer the unary method retrieved from classes.Claudiu Popa2015-07-032-2/+16
|
* Add new property name in the list of known property-like objects.Claudiu Popa2015-07-031-1/+3
|
* Add __enter__ and __exit__ for subprocess.Popen.Claudiu Popa2015-07-031-36/+46
|
* Fix pylint warnings.Claudiu Popa2015-07-021-3/+3
|
* Update modutils.py from logilab.common and add support for namespace packagesClaudiu Popa2015-07-022-14/+31
| | | | | | This patch is mostly a backport from logilab.common. The addition is the support for pkg_resources.declare_namespace, which created a good deal of problems so far with regard to virtualenvs.
* Add support for inferring methods masquerading as others for the binop ↵Claudiu Popa2015-07-022-1/+16
| | | | protocols.
* Fix the name of the __pow__ protocol.Claudiu Popa2015-07-011-1/+1
|
* Remove trailing whitespace.Claudiu Popa2015-07-012-2/+2
|
* Add support for inferring subscript on instances, which will use ↵Claudiu Popa2015-07-013-3/+61
| | | | __getitem__. Closes issue #124.
* Add test for indexing results of tuple and list builtins.Claudiu Popa2015-07-011-1/+3
|
* Add test for indexing strings.Claudiu Popa2015-07-011-1/+2
|
* Use six constants for python versions.Claudiu Popa2015-07-011-7/+3
|
* Add support for indexing bytes on Python 3.Claudiu Popa2015-07-012-0/+14
|
* Modernize test to use extract_node.Claudiu Popa2015-07-011-18/+11
|
* Mark a test as an expected failure: not all staticmethod and classmethods ↵Claudiu Popa2015-07-011-1/+2
| | | | are callable. Should be fixed when we'll understand classmethods and staticmethods.
* Add annotation support for function.as_string(). Closes issue #37.Claudiu Popa2015-07-013-9/+33
|
* Merged in jarradhope/astroid (pull request #73)Claudiu Popa2015-07-012-6/+17
|\ | | | | | | add annotations to as_string method of Arguments
| * add returns annotationjarradhope2015-04-261-2/+5
| |
| * annotations = Nonejarradhope2015-04-261-1/+3
| |
| * Merged logilab/astroid into defaultJarrad Hope2015-04-262-0/+26
| |\
| * | add annotations to as_string method of Argumentsjarradhope2015-04-261-4/+10
| | |
* | | Pin dependency of logilab.common to 0.63.2 for now.Claudiu Popa2015-07-011-1/+1
| | |
* | | Star unpacking in assignments returns properly a list, not the individual ↵Claudiu Popa2015-07-012-12/+18
| | | | | | | | | | | | components. Closes issue #138.
* | | Remove trailing whitespace.Claudiu Popa2015-06-301-1/+1
| | |
* | | Add support for multiplication of tuples and lists with instances which ↵Claudiu Popa2015-06-302-6/+56
| | | | | | | | | | | | provides an __index__ returning-int method.
* | | Transform lambdas with a self argument at the class level to bound methods.Claudiu Popa2015-06-302-0/+28
| | |
* | | Add a couple of pragma disables for some false positives.Claudiu Popa2015-06-302-0/+3
| | |
* | | Fix the signature of __add__.Claudiu Popa2015-06-281-2/+2
| | |
* | | Emit YES for all string operations operands, it will be implemented later.Claudiu Popa2015-06-281-3/+2
| | |
* | | Return NotImplemented for inferring binary operations between consts and ↵Claudiu Popa2015-06-281-1/+3
| | | | | | | | | | | | other nodes only if TypeError is raised.
* | | Ignore string interpolation with tuples and dictionaries for now.Claudiu Popa2015-06-282-0/+16
| | |
* | | Add support for retrieving TypeErrors for binary arithmetic operations and ↵Claudiu Popa2015-06-284-19/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | augmented assignments. The change is similar to what was added for UnaryOps: a new method called *type_errors* for both AugAssign and BinOp, which can be used to retrieve type errors occurred during inference. Also, a new exception object was added, BinaryOperationError.
* | | Move UnaryOp code to be closer to BinaryOp.Claudiu Popa2015-06-281-56/+57
| | |
* | | Improve the inference of binary arithmetic operations (normal and augmented)Claudiu Popa2015-06-273-135/+696
| | | | | | | | | | | | | | | | | | This patch completely changes the way how binary and augmented operations are inferred, trying to be as compatible as possible with the semantics from the language reference.
* | | Add helpers.is_supertype and helpers.is_subtype, two functions for checking ↵Claudiu Popa2015-06-262-33/+183
| | | | | | | | | | | | if an object is a super/sub type of another.
* | | Add __reversed__ special method to deques.Claudiu Popa2015-06-261-2/+3
| | |
* | | Remove trailing whitespace.Claudiu Popa2015-06-241-1/+1
| | |
* | | Understand the one-argument form of the builtin *type*.Claudiu Popa2015-06-242-11/+40
| | | | | | | | | | | | | | | This uses the recently added *astroid.helpers.object_type* in order to retrieve the Python type of the first argument of the call.
* | | Add astroid.helpers, a module of various useful utilities which don't belong ↵Claudiu Popa2015-06-243-1/+270
| | | | | | | | | | | | | | | | | | | | | yet into other components. Added *object_type*, a function which can be used to obtain the type of almost any astroid object, similar to how the builtin *type* works.
* | | NotImplemented is detected properly now as being part of the builtins module.Claudiu Popa2015-06-233-1/+13
| | | | | | | | | | | | Previously trying to infer the Name(NotImplemented) returned an YES object.
* | | Remove trailing whitespace and use the correct argument to require_version.Claudiu Popa2015-06-211-2/+2
| | |
* | | Add support for Python 3.5's MatMul infix operator. See PEP 465 for more ↵Claudiu Popa2015-06-213-0/+21
| | | | | | | | | | | | details.
* | | Fix a couple of style issues:Claudiu Popa2015-06-211-186/+164
| | | | | | | | | | | | | | | | | | | | | | | | - import only modules and use their attributes - remove_nodes is now a real decorator - use @ syntax for decorators - remove line spaces where they weren't necessary - remove useless comments
* | | Simplify a test.Claudiu Popa2015-06-201-56/+29
| | |