summaryrefslogtreecommitdiff
path: root/astroid
Commit message (Collapse)AuthorAgeFilesLines
* Mark __init_subclass__ as classmethod (#388)2.0.experimental2.0Łukasz Rogalski2017-01-302-0/+13
|
* Different name for kwonlyargs in astroid 2.0Claudiu Popa2017-01-261-2/+2
|
* Let NotSupportedError be propagated.Claudiu Popa2017-01-262-7/+7
|
* Add getitem to defaultdict brain. (#387)Derek Gustafson2017-01-252-0/+14
|
* Make is_argument search kwonlyargs. (#386)Derek Gustafson2017-01-222-1/+15
|
* Implement __getitem__ inference for classes (using the metaclass)David Euresti2017-01-222-0/+41
| | | | | | Essentially implement the getitem method in ClassDef which returns the correct value. Fixes #348
* Make ClassDefs support keyword arguments. (#384)Derek Gustafson2017-01-224-3/+33
|
* add format string support (#365)Jared Garst2016-12-306-3/+65
| | | | Format strings require support for two new nodes, FormattedValue, respectively JoinedStr.
* Add support for binary operations between classes.Claudiu Popa2016-12-303-3/+26
|
* Add a new mechanism for retrieving the special methods.Claudiu Popa2016-12-303-2/+87
|
* Add support for inferring unary binary op for classesClaudiu Popa2016-12-302-1/+12
|
* Add missing parameter to default implementation.Claudiu Popa2016-12-301-1/+1
|
* Wrap values in Const, in order to find them properly.Claudiu Popa2016-12-301-2/+2
|
* Raise AstroidTypeError whenever a slice cannot be inferred, instead of ↵Claudiu Popa2016-12-301-1/+3
| | | | raising TypeError and letting the upper context to handle it.
* Make sure we don't convert a None object to a list.Claudiu Popa2016-12-301-3/+5
|
* Force the path to be a list when passing it to find_module.Claudiu Popa2016-12-301-1/+2
|
* Reraise the exceptions as astroid exceptions in .getitem.Claudiu Popa2016-12-301-6/+10
|
* Let the type error propagate as an AstroidTypeError.Claudiu Popa2016-12-304-28/+53
|
* Use sys.base_exec_prefix in case sys.real_prefix is not definedClaudiu Popa2016-12-301-2/+10
| | | | | | | | sys.real_prefix is an addition of the *virtualenv* library, but it is not added when a virtual environment is created with the builtin *venv* library. In the latter's case, sys.base_exec_prefix is the one pointing to the original installation of Python. Now, in case sys.real_prefix is not defined, we fallback to sys.base_exec_prefix.
* getitem() method accepts nodes now, instead of Python objects.Claudiu Popa2016-12-306-76/+109
|
* Hardcode the names of the expected unbound method names.Claudiu Popa2016-12-301-2/+6
|
* Skip the current class when deducing its mro. Close #361.Claudiu Popa2016-11-211-0/+2
|
* Add the full path to the resources's data directory when testing the ↵Claudiu Popa2016-11-012-2/+5
| | | | namespace package pth support.
* Add test for underscores in numeral literal (Python 3.6)Claudiu Popa2016-11-011-0/+19
|
* Use the correct _replace member. Thanks to @dirthead for finding the bug. ↵Claudiu Popa2016-10-241-1/+1
| | | | Close #368
* Export __version__ in __init__.Moisés López2016-08-242-2/+3
|
* Remove infered and instantiate_class from the code baseClaudiu Popa2016-08-242-30/+0
|
* Simplify an if expression.Claudiu Popa2016-08-241-1/+1
|
* Export two helpers for verifying the type of a spec.Claudiu Popa2016-08-241-0/+7
|
* Rename a couple of finders and document them.Claudiu Popa2016-08-241-13/+36
|
* Move the spec finder under a new namespace, interpreter._import.Claudiu Popa2016-08-246-286/+312
|
* Add support for discovering .pth file created by certain namespace packages.Claudiu Popa2016-08-245-4/+45
|
* Add brain tips for _io.TextIOWrapper's buffer and raw attributes.Claudiu Popa2016-08-222-0/+89
|
* Make InterpreterObjects be used as their underlying runtime object, by ↵Claudiu Popa2016-08-211-4/+18
| | | | providing a way to access the attributes of the latter seamlessly.
* Use proper environment markers for version specific dependencies.Claudiu Popa2016-08-021-10/+3
|
* Left to do notice for the future.Claudiu Popa2016-07-281-0/+1
|
* Add `returns` into the proper order in FunctionDef._astroid_fieldsClaudiu Popa2016-07-272-1/+13
| | | | | The order is important, since it determines the last child, which in turn determines the last line number of a scoped node.
* Add missing parameter to underlying bound method.Claudiu Popa2016-07-231-1/+1
|
* Even more granular copyrights (thanks to copyrite)Claudiu Popa2016-07-2267-153/+228
|
* Keep a consistent copyright notice across the board.Claudiu Popa2016-07-1967-0/+134
|
* Make Uninferable have a false value by default.Claudiu Popa2016-07-162-7/+18
|
* Move test specific to pylint into pylint.Claudiu Popa2016-06-291-19/+0
|
* New function, astroid.extract_node, exported out from astroid.test_utils.Claudiu Popa2016-06-2918-484/+482
|
* Use the lineno and col_offset provided by variadics in Python 3.5+. Close #335Claudiu Popa2016-06-282-2/+32
|
* Add more up-to-date package information. Close #330Claudiu Popa2016-06-271-3/+3
|
* Add runtime virtual classes for DictKeys, DictItems, DictValues and ↵Claudiu Popa2016-06-203-0/+21
| | | | DictInstance.
* Give priority to local special attributes for classes and modulesClaudiu Popa2016-06-053-6/+43
| | | | | | For instance, a module can decide to redefine its __file__ attribute. Previously, this was defaulting to the file name itself, without taking in account local redefinitions.
* Don't restrict building of builtin type's member if they are already in ↵Claudiu Popa2016-06-043-4/+3
| | | | | | | | | | special_attributes The introduction of the special attribute models led to an interesting bug, where some of the members of the builtin type were not added into it, since they were already defined at the level of the special_attributes. The latter is just a declaration of what attributes a type can have, usually leading to introspecting the type itself for retrieving the value of the special attribute.
* Proper bound and _proxied objects for __subclasses__ and __mro__ pointing to ↵Claudiu Popa2016-06-042-2/+36
| | | | type.mro, respectively type.__subclasses__.
* Now is_subtype / is_supertype raises an internal exception when a type ↵Claudiu Popa2016-06-034-18/+38
| | | | | | | | hierarchy can't be determined It used to return Uninferable, but no call site was actually taking care of this potential return. It is better though to simply raise an exception and to let the call sites to handle them in which way they want to.