2018-11-26 10:00:52 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message: py-astroid: updated to 2.1.0 What's New in astroid 2.1.0? * threading.Lock.acquire has the timeout parameter now. * Pass parameters by keyword name when inferring sequences. * Correct line numbering for f-strings for complex embedded expressions When a f-string contained a complex expression, such as an attribute access, we weren't cloning all the subtree of the f-string expression for attaching \ the correct line number. This problem is coming from the builtin AST parser which gives \ for the f-string and for its underlying elements the line number 1, but this is causing all \ sorts of bugs and problems in pylint, which expects correct line numbering. * Add support for argparse.Namespace * async functions are now inferred as AsyncGenerator when inferring their call \ result. * Filter out Uninferable when inferring the call result result of a class with \ an uninferable __call__ method. * Make compatible with AST changes in Python 3.8. * Subscript inference (e.g. "a[i]") now pays attention to multiple \ inferred values for value (e.g. "a") and slice (e.g. "i") |
2018-08-10 14:16:23 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message: py-astroid: updated to 2.0.4 2.0.4: Make sure that assign nodes can find ``yield`` statements in their values 2.0.3: The environment markers for PyPy were invalid. |
2018-08-02 17:13:34 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message: py-astroid: updated to 2.0.2 What's New in astroid 2.0.2? * Stop repeat inference attempt causing a RuntimeError in Python3.7 * infer_call_result can raise InferenceError so make sure to handle that for \ the call sites where it is used infer_call_result started recently to raise InferenceError for objects for \ which it could not find any returns. Previously it was silently raising a StopIteration, which was especially leaking when calling builtin methods. Since it is after all an inference method, it is expected that it could raise an InferenceError rather than returning nothing. |
2018-07-24 08:13:53 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message: py-astroid: updated to 2.0.1 2.0.1: Released to clear an old wheel package on PyPI |
2018-07-17 12:05:46 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message: py-astroid: updated to 2.0 astroid 2.0: * String representation of nodes takes in account precedence and associativity \ rules of operators. * Fix loading files with modutils.load_from_module when the path that contains it in sys.path is a symlink and the file is contained in a symlinked folder. * Reworking of the numpy brain dealing with numerictypes (use of inspect module to determine the class hierarchy of numpy.core.numerictypes module) * Added inference support for starred nodes in for loops * Support unpacking for dicts in assignments * Add support for inferring functools.partial * Inference support for dict.fromkeys * int() builtin is inferred as returning integers. * str() builtin is inferred as returning strings. * DescriptorBoundMethod has the correct number of arguments defined. * Improvement of the numpy numeric types definition. * Subclasses of *property* are now interpreted as properties * AsStringRegexpPredicate has been removed. Use transform predicates instead of it. * Switched to using typed_ast for getting access to type comments As a side effect of this change, some nodes gained a new type_annotation attribute, which, if the type comments were correctly parsed, should contain a node object with the corresponding objects from the type comment. * typing.X[...] and typing.NewType are inferred as classes instead of instances. * Module.__path__ is now a list It used to be a string containing the path, but it doesn't reflect the situation on Python, where it is actually a list. * Fix a bug with namespace package's __path__ attribute. * Added brain tips for random.sample * Add brain tip for issubclass builtin * Fix submodule imports from six * Fix missing __module__ and __qualname__ from class definition locals * Fix a crash when __annotations__ access a parent's __init__ that does not have \ arguments * Fix multiple objects sharing the same InferenceContext.path causing \ uninferable results * Fix improper modification of col_offset, lineno upon inference of builtin functions * Subprocess.Popen brain now knows of the args member * add move_to_end method to collections.OrderedDict brain * Include new hashlib classes added in python 3.6 * Fix RecursionError for augmented assign * Add missing attrs special attribute * Inference now understands the 'isinstance' builtin * Stop duplicate nodes with the same key values from appearing in dictionaries from dictionary unpacking. * Fix contextlib.contextmanager inference for nested context managers * Implement inference for len builtin * Add qname method to Super object preventing potential errors in upstream pylint * Stop astroid from getting stuck in an infinite loop if a function shares its name with its decorator * Fix issue with inherited __call__ improperly inferencing self * Fix __call__ precedence for classes with custom metaclasses * Limit the maximum amount of interable result in an NodeNG.infer() call to 100 by default for performance issues with variables with large amounts of possible values. The max inferable value can be tuned by setting the max_inferable_values flag on astroid.MANAGER. |
2018-06-07 08:33:54 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message: py-astroid: updated to 1.6.5 1.6.5 * Don't propagate Uninferable objects when inferring BinOps * Protect against passing lookup_class to non-class proxied objects In some cases the _proxied object points to another Instance, not to the Class of an Instance node (usually this happens with enum and with our hardcoded inference support for this library). Instead of getting a TypeError, we check before if the _proxied matches what we expect. |
2018-05-16 08:54:20 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message: py-astroid: updated to 1.6.4 1.6.4 * Skip non-attrs specific attributes in attr wrapped classes. * Add brain tip for numpy.sum. * deque.rotate has a default parameter. |
2018-04-06 13:51:27 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message: py-astroid: updated to 1.6.3 1.6.3: Bug fixes. |
2018-03-17 07:52:50 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message: py-astroid: updated to 1.6.2 1.6.2 * Fix submodule imports from six * Enhancement of brain_numpy by adding different types from numpy.core.numerictypes * Fix RecursionError for augmented assign * Stop most inference tip overwrites from happening by using predicates on existing inference_tip transforms. * Add missing attrs special attribute * Fix contextlib.contextmanager inference for nested context managers |
2018-01-31 12:50:08 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message: py-astroid: updated to 1.6.1 1.6.1 * Fix a crash when __annotations__ access a parent's __init__ that does not have \ arguments |