Commit Graph

1 Commits

Author SHA1 Message Date
Leon Anavi
698890b9ba python3-astroid: Upgrade 2.5.6 -> 2.5.7
Upgrade to release 2.5.7:

- Fix six.with_metaclass transformation so it doesn't break user
  defined transformations
- Fix detection of relative imports
- Fix inference of instance attributes defined in base classes
- Update `infer_named_tuple` brain to reject namedtuple
  definitions that would raise ValueError
- Do not set instance attributes on builtin object()
- Fix some spurious cycles detected in ``context.path`` leading to
  more cases that can now be inferred
- Add ``kind`` field to ``Const`` nodes, matching the structure of
  the built-in ast Const. The kind field is "u" if the literal is
  a u-prefixed string, and ``None`` otherwise.
- Fix property inference in class contexts for properties defined
  on the metaclass
- Update enum brain to fix definition of __members__ for
  subclass-defined Enums
- Update random brain to fix a crash with inference of some
  sequence elements
- Fix inference of attributes defined in a base class that is an
  inner class
- Allow inferring a return value of None for non-abstract empty
  functions and functions with no return statements (implicitly
  returning None)
- scm_setuptools has been added to the packaging.
- Astroid's tags are now the standard form ``vX.Y.Z`` and not
  ``astroid-X.Y.Z`` anymore.
- Add initial support for Pattern Matching in Python 3.10

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2021-06-01 07:48:10 -07:00