2019-10-01 13:34:56 by Adam Ciarcinski | Files touched by this commit (4) | |
Log message:
py-astroid: updated to 2.3.1
What's New in astroid 2.3.1?
* A transform for the builtin `dataclasses` module was added.
This should address various `dataclasses` issues that were surfaced
even more after the release of pylint 2.4.0.
In the previous versions of `astroid`, annotated assign nodes were
allowed to be retrieved via `getattr()` but that no longer happens
with the latest `astroid` release, as those attribute are not actual
attributes, but rather virtual ones, thus an operation such as `getattr()`
does not make sense for them.
* Update attr brain to partly understand annotated attributes
What's New in astroid 2.3.0?
* Add a brain tip for ``subprocess.check_output``
* Remove NodeNG.nearest method because of lack of usage in astroid and pylint.
* Allow importing wheel files.
* Annotated AST follows PEP8 coding style when converted to string.
* Fix a bug where defining a class using type() could cause a DuplicateBasesError.
* Dropped support for Python 3.4.
* Numpy brain support is improved.
Numpy's fundamental type ``numpy.ndarray`` has its own brain : \
``brain_numpy_ndarray`` and
each numpy module that necessitates brain action has now its own numpy brain :
- ``numpy.core.numeric``
- ``numpy.core.function_base``
- ``numpy.core.multiarray``
- ``numpy.core.numeric``
- ``numpy.core.numerictypes``
- ``numpy.core.umath``
- ``numpy.random.mtrand``
* ``assert`` only functions are properly inferred as returning ``None``
* Add support for Python 3.8's `NamedExpr` nodes, which is part of assignment \
expressions.
* Added support for inferring `IfExp` nodes.
* Instances of exceptions are inferred as such when inferring in non-exception \
context
This allows special inference support for exception attributes such as `.args`.
* Drop a superfluous and wrong callcontext when inferring the result of a \
context manager
* ``igetattr`` raises ``InferenceError`` on re-inference of the same object
This prevents ``StopIteration`` from leaking when we encounter the same
object in the current context, which could result in various ``RuntimeErrors``
leaking in other parts of the inference.
Until we get a global context per inference, the solution is sort of a hack,
as with the suggested global context improvement, we could theoretically
reuse the same inference object.
* Variable annotations can no longer be retrieved with `ClassDef.getattr`
Unless they have an attached value, class variable annotations can no longer
be retrieved with `ClassDef.getattr.`
* Improved builtin inference for ``tuple``, ``set``, ``frozenset``, ``list`` and \
``dict``
We were properly inferring these callables *only* if they had consts as
values, but that is not the case most of the time. Instead we try to infer
the values that their arguments can be and use them instead of assuming
Const nodes all the time.
* The last except handler wins when inferring variables bound in an except handler.
* ``threading.Lock.locked()`` is properly recognized as a member of \
``threading.Lock``
* Fix recursion error involving ``len`` and self referential attributes
* Can access per argument type comments through new \
``Arguments.type_comment_args`` attribute.
* Fix being unable to access class attributes on a NamedTuple.
* Fixed being unable to find distutils submodules by name when in a virtualenv.
|
2019-05-02 11:16:48 by Adam Ciarcinski | Files touched by this commit (10) |
Log message:
Forget about Python 3.4
|
2019-03-13 20:19:28 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-astroid: updated to 2.2.5
What's New in astroid 2.2.5?
* The last except handler wins when inferring variables bound in an except handler.
|
2019-03-06 19:39:43 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-astroid: updated to 2.2.4
What's New in astroid 2.2.4?
* Latest typed_ast gets installed for all CPython versions.
|
2019-03-04 19:47:57 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-astroid: updated to 2.2.3
What's New in astroid 2.2.3?
* Replace any with uninferable when returning values from numpy transform
Turns out that this was conflicting with the any builtin, while the original
intention was to return a value that cannot be inferred, until we have support
for types.
This should fix a couple of false positives on pylint's side where the return
value of numpy functions was considered to be itself a function.
|
2019-03-02 15:10:14 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-astroid: updated to 2.2.2
What's New in astroid 2.2.2?
* Generated proper environment markers for installing typed-ast.
What's New in astroid 2.2.1?
* Make sure to infer the arguments to the slice() builtin
* Correctly instantiate exception instances when inferring their attributes with \
objectmodel
|
2019-02-28 10:17:42 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
py-astroid: updated to 2.2.0
What's New in astroid 2.2.0?
* Fix a bug concerning inference of calls to numpy function that should not \
return Tuple or List instances.
* typed_ast gets installed for Python 3.7, meaning type comments can now work on 3.7.
* Fix a bug concerning inference of unary operators on numpy types.
* Fix a crash with typing.NamedTuple and empty fields.
* Add a proper strerror inference to the OSError exceptions.
* Support non-const nodes as values of Enum attributes.
* Fix a crash in the enum brain tip caused by non-assign members in class \
definitions.
* brain_numpy returns an undefined type for numpy methods to avoid \
assignment-from-no-return
* Fix a bug where a call to a function that has been previously called via
functools.partial was wrongly inferred
* Fix a recursion error caused by inferring the slice builtin.
* Remove the restriction that "old style classes" cannot have a MRO.
This does not make sense any longer given that we run against Python 3
code.
* Added more builtin exceptions attributes.
* Add a registry for builtin exception models.
* Add brain tips for http.client.
* Prevent crashing when processing enums with mixed single and double quotes.
* typing types have the __args__ property.
* Fix a bug where an Attribute used as a base class was triggering a crash
* Added special support for enum.IntFlag
* Extend detection of data classes defined with attr
* Fix typo in description for brain_attrs
|
2018-12-27 17:03:09 by Joerg Sonnenberger | Files touched by this commit (1) |
Log message:
PYTHON_VERSIONS_INCOMPATIBLE must be set before pyversion.mk is included.
|
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.
|