cb17148405Accepting request 1160817 from devel:languages:python
factory
Ana Guerrero
2024-03-25 20:06:40 +0000
a736edde7b- update to 3.1.0: * Include PEP 695 (Python 3.12) generic type syntax nodes in `get_children(), allowing checkers to visit them. * Add __main__ as a possible inferred value for __name__ to improve control flow inference around if __name__ == "__main__": guards. * Following a deprecation period, the names arg to the Import constructor and the op arg to the BoolOp constructor are now required, and the doc args to the PartialFunction and Property constructors have been removed (call postinit(doc_node=...) instead.) * Following a deprecation announced in astroid 1.5.0, the alias AstroidBuildingException is removed in favor of AstroidBuildingError. * Include modname in AST warnings. Useful for invalid escape sequence warnings with Python 3.12. * RecursionError is now trapped and logged out as UserWarning during astroid node transformations with instructions about raising the system recursion limit. * Suppress SyntaxWarning` for invalid escape sequences on Python 3.12 when parsing modules.Dirk Mueller2024-03-22 19:55:45 +0000
09ecbd9ec6Accepting request 1135253 from devel:languages:python
Ana Guerrero
2023-12-28 21:54:32 +0000
f1a424594f- update to 3.0.2: * Avoid duplicate inference results for some uses of `typing.X constructs like Tuple[Optional[int], ...]. This was causing pylint to occasionally omit messages like deprecated-typing-alias`. - Correct Requires for typing_extensions. - Update to 2.12.13: - Update to 2.12.12: set to None. Closes#1755 FunctionDef parent but are now correctly parented to their - Drop part_rm_dep_imp.patch fixed upstream * Properly construct the arguments of infered property descriptors * Properly analyze CFFI compiled extensions. * brain plugins can now register hooks to handle failed imports, * Fix names grabed using wildcard import in "absolute import mode" (ie with absolute_import activated from the __future__ or with * fix#20760: crash on pyreverse : AttributeError: 'Subscript' by Dave Borowitz * new InstanceMethod node introduced to wrap bound method (eg * compatibility with python2.3 and logilab-common 0.21 * .locals and .globals on scoped node handle now a list ofDirk Mueller2023-12-27 09:43:11 +0000
7e6352677aAccepting request 1118346 from devel:languages:python
Ana Guerrero
2023-10-19 20:47:17 +0000
027ea79a63Accepting request 1118344 from home:mcalabkova:branches:devel:languages:python:312
Markéta Machová
2023-10-17 15:46:15 +0000
d1541c0f34Accepting request 1098939 from devel:languages:python
Ana Guerrero
2023-07-19 17:09:38 +0000
9c2fe1fac6- update to 2.15.6: * Harden `get_module_part() against ".". * Avoid expensive list/tuple multiplication operations that would result in MemoryError`.Dirk Mueller2023-07-16 11:41:00 +0000
79445593ccAccepting request 1087263 from devel:languages:python
Dominique Leuenberger
2023-05-16 12:16:04 +0000
babc8d198d- update to 2.15.5: * Handle `objects.Super in helpers.object_type()`.Dirk Mueller2023-05-15 16:20:18 +0000
462a18e51dAccepting request 1083439 from devel:languages:python
Dominique Leuenberger
2023-04-29 15:27:44 +0000
fea8e5dd34- Correct Requires for typing_extensions.
Steve Kowalik
2023-04-28 07:12:51 +0000
21963bf0d5Accepting request 1082830 from devel:languages:python
Dominique Leuenberger
2023-04-27 17:57:09 +0000
fbfa3ba1cb- update to 2.15.4: * Add visitor function for `TryStar to AsStringVisitor and add TryStar to astroid.nodes.ALL_NODE_CLASSES`.Dirk Mueller2023-04-25 22:01:09 +0000
ec3b35f980Accepting request 1082058 from devel:languages:python
Dominique Leuenberger
2023-04-22 20:03:08 +0000
4c4d017dedAccepting request 1081333 from home:dirkmueller:acdc:as_python3_moduleDirk Mueller2023-04-21 15:12:43 +0000
d6ca129969Accepting request 1080002 from devel:languages:python
Dominique Leuenberger
2023-04-20 13:13:24 +0000
54167c105e- update to 2.15.3: * Fix `infer_call_result() crash on methods called with_metaclass() * Suppress UserWarning` when finding module specs.Dirk Mueller2023-04-17 19:07:57 +0000
d1e9fb3ed6- update to 2.15.2: * Support more possible usages of `attrs decorators. * Restore behavior of setting a Call as a base for classes created using six.with_metaclass(), and harden support for using enums as metaclasses in this case. * astroid now supports TryStar nodes from python 3.11 and should be fully compatible with python 3.11. * Formattedvalue.postinit is now keyword only. This is to allow correct typing of the Formattedvalue class. * Astroid now supports custom import hooks. * astroid now infers return values from match cases. * AstroidManager.clear_cache now also clears the inference context cache. * Astroid now retrieves the default values of keyword only arguments and sets them on Arguments.kw_defaults. * Uninferable now has the type UninferableBase. This is to facilitate correctly type annotating code that uses this singleton. * Deprecate modutils.is_standard_module(). It will be removed in the next minor release. * Fix are_exclusive function when a walrus operator is used inside IfExp.test` field.Dirk Mueller2023-04-16 09:21:11 +0000
8759da0cb9Accepting request 1058347 from devel:languages:python
Dominique Leuenberger
2023-01-15 16:57:59 +0000
77ba4a3f17- update to v2.12.14: * Handle the effect of properties on the __init__ of a dataclass correctly. * Handle the effect of kw_only=True in dataclass fields correctly. * Handle the effect of init=False in dataclass fields correctly. * Fix crash if numpy module doesn't have version attribute. * Handle AttributeError during str.format template inference tip evaluationDirk Mueller2023-01-07 08:53:07 +0000
dd4c7ec00aAccepting request 1039738 from devel:languages:python
Dominique Leuenberger
2022-12-04 13:57:43 +0000
2c5918efbdAccepting request 1039708 from home:yarunachalam:branches:devel:languages:pythonDirk Mueller2022-12-03 07:26:11 +0000
5be13e7892Accepting request 1032176 from devel:languages:python
Dominique Leuenberger
2022-10-30 17:28:26 +0000
ce9be89ce8Accepting request 1031647 from home:yarunachalam:branches:devel:languages:pythonMatej Cepl2022-10-29 11:43:40 +0000
8739cb477aAccepting request 1010535 from devel:languages:python
Dominique Leuenberger
2022-10-14 13:40:09 +0000
cb1725c065- update to 2.12.11: * Improve detection of namespace packages for the modules with `__spec__` set to None.Dirk Mueller2022-10-13 19:35:09 +0000
d6adcff512Accepting request 1005710 from devel:languages:python
Dominique Leuenberger
2022-09-25 13:34:29 +0000
0b8c790d0bAccepting request 1005671 from home:bnavigator:branches:devel:languages:pythonDirk Mueller2022-09-24 06:35:01 +0000
9b0007dfa2Accepting request 1005503 from home:yarunachalam:branches:devel:languages:pythonDaniel Garcia2022-09-23 11:25:38 +0000
6700151d8cAccepting request 999930 from devel:languages:python
Dominique Leuenberger
2022-08-30 12:48:29 +0000
55a699f6d9Accepting request 999550 from home:bnavigator:branches:devel:languages:python
Markéta Machová
2022-08-29 11:32:08 +0000
f54f70b6abAccepting request 946671 from devel:languages:python
Dominique Leuenberger
2022-01-17 21:33:51 +0000
6dbe21c7b4- update to 2.9.3: * Fixed regression where packages without a `__init__.py file were not recognized or imported correctly. * Fixed regression in astroid.scoped_nodes where _is_metaclass was not accessible anymore. * NodeNG.frame() and NodeNG.statement() will start raising ParentMissingError instead of AttributeError in astroid 3.0. This behaviour can already be triggered by passing future=True to a frame() or statement() call. * Prefer the module loader get_source() method in AstroidBuilder's module_build() when possible to avoid assumptions about source code being available on a filesystem. Otherwise the source cannot be found and application behavior changes when running within an embedded hermetic interpreter environment (pyoxidizer, etc.). * Require Python 3.6.2 to use astroid. * Removed custom distutils handling for resolving paths to submodules. * Fix deque.insert() signature in collections brain. * Fix Module nodes not having a col_offset, end_lineno, and end_col_offset attributes. * Fix typing and update explanation for Arguments.args being None. * Fix crash if a variable named type` is subscripted in a generator expression. * Enable inference of dataclass import from marshmallow_dataclass. This allows the dataclasses brain to recognize dataclasses annotated by marshmallow_dataclass. * Resolve symlinks in the import path Fixes inference error when the import path includes symlinks (e.g. Python installed on macOS via Homebrew).Dirk Mueller2022-01-15 16:45:59 +0000
3617b0abf7Accepting request 938244 from devel:languages:python
Dominique Leuenberger
2021-12-25 19:16:22 +0000
222d7799b8Accepting request 937782 from home:pgajdos:pythonMatej Cepl2021-12-09 16:54:39 +0000
ee824778feAccepting request 931287 from devel:languages:python
Dominique Leuenberger
2021-11-15 14:26:20 +0000
93a25f6815- update to 2.8.5: * Use more permissive versions for the `typed-ast dependencie (<2.0 instead of <1.5) * Fix crash on inference of __len__. * Added missing kind (for Const) and conversion (for FormattedValue`) fields to repr. * Fix crash with assignment expressions, nested if expressions and filtering of statements * Fix incorrect filtering of assignment expressions statementsDirk Mueller2021-11-13 20:22:50 +0000
5a5792ccd0Accepting request 927851 from devel:languages:python
Dominique Leuenberger
2021-10-30 21:13:19 +0000
814e66b81cAccepting request 927778 from home:bnavigator:branches:devel:languages:pythonMatej Cepl2021-10-27 19:47:00 +0000
3852176b1dAccepting request 922942 from devel:languages:python
Dominique Leuenberger
2021-10-20 18:23:14 +0000
05d0f1bac9Accepting request 922892 from home:bnavigator:branches:devel:languages:pythonMatej Cepl2021-10-04 07:07:59 +0000
72118286f0Accepting request 914343 from devel:languages:python
Dominique Leuenberger
2021-08-28 20:28:46 +0000
3b8f69e26cAccepting request 913391 from home:bnavigator:branches:devel:languages:pythonMatej Cepl2021-08-26 07:06:29 +0000
6460142b31Accepting request 913270 from devel:languages:python
Dominique Leuenberger
2021-08-24 08:54:01 +0000
82f547ee0aAccepting request 913116 from home:glaubitz:branches:devel:languages:python
Markéta Machová
2021-08-20 07:29:13 +0000
54091c92a2Accepting request 891345 from devel:languages:python
Dominique Leuenberger
2021-05-12 17:31:14 +0000
c6747b13c0Accepting request 891337 from home:bnavigator:branches:devel:languages:pythonMatej Cepl2021-05-07 15:25:28 +0000
d27b7b8f9aAccepting request 880615 from devel:languages:python
Richard Brown
2021-04-01 12:15:49 +0000
eff376519dAccepting request 880419 from home:bnavigator:branches:devel:languages:pythonDirk Mueller2021-03-22 22:15:02 +0000
80af1917b6Accepting request 853413 from devel:languages:python
Dominique Leuenberger
2020-12-12 19:28:43 +0000
f5dc3d88eeAccepting request 853331 from home:bnavigator:branches:devel:languages:pythonMatej Cepl2020-12-06 17:35:23 +0000
403c843d53Accepting request 816653 from devel:languages:python
Dominique Leuenberger
2020-06-26 19:44:15 +0000
1ff7d31070Accepting request 814800 from devel:languages:python
Dominique Leuenberger
2020-06-21 16:51:50 +0000
1d3acd69d1- Update to 2.4.2: * FunctionDef.is_generator properly handles yield nodes in While tests * Properly construct the arguments of infered property descriptors
Steve Kowalik
2020-06-16 03:03:01 +0000
7c1fd6b4f9Accepting request 807183 from devel:languages:python
Yuchen Lin
2020-05-28 07:08:00 +0000
d225e05802- Update to 2.4.1: * Handle the case where the raw builder fails to retrieve the `__all__ attribute * Restructure the AST parsing heuristic to always pick the same module * Changed setup.py to work with [distlib](https://pypi.org/project/distlib) * Do not crash with SyntaxError when parsing namedtuples with invalid label * Protect against infer_call_result failing with InferenceError in Super.getattr() * Expose a ast_from_string method in AstroidManager, which will accept * BoundMethod.implicit_parameters returns a proper value for __new__ * Allow slots added dynamically to a class to still be inferred * Allow FunctionDef.getattr to look into both instance attrs and special attributes * Infer qualified classmethod as a classmethod. * Prevent a recursion error to happen when inferring the declared metaclass of a class * Raise AttributeInferenceError when getattr() receives an empty name * Prevent a recursion error for self reference variables and type() calls. * Do not infer the first argument of a staticmethod in a metaclass as the class itself * NodeNG.bool_value() gained an optional context parameter * Pass a context argument to astroid.Arguments to prevent recursion errors * Better inference of class and static methods decorated with custom methods * Reverse the order of decorators for infer_subscript * Prevent a recursion error when inferring self-referential variables without definition * Numpy datetime64.astype return value is inferred as a ndarray. * Skip non Assign and AnnAssign nodes from enum reinterpretation * Numpy ndarray attributes imag and real are now inferred as ndarray. * Added a call to register_transform for all functions of the brain_numpy_core_multiarray * Use the parent of the node when inferring aug assign nodes instead of the statement * Added some functions to the brain_numpy_core_umath module * Added some functions of the numpy.core.multiarray module * All the numpy ufunc functions derived now from a common class that * nodes.Const.itered returns a list of Const nodes, not strings * The shape attribute of a numpy ndarray is now a ndarray`
Steve Kowalik
2020-05-07 04:39:47 +0000
38e68d243dAccepting request 748640 from devel:languages:python
Dominique Leuenberger
2019-11-22 09:24:28 +0000
d30a5a3913- Update to 2.3.3: * Update six version to 1.13.Matej Cepl2019-11-14 10:33:37 +0000
a25b9c8acfAccepting request 744674 from devel:languages:python
Dominique Leuenberger
2019-11-04 16:13:51 +0000
7380d20f7d- Update to 2.3.2: * All type comments have as parent the corresponding astroid node * Pass an inference context to metaclass() when inferring an object type
Tomáš Chvátal
2019-11-01 08:38:30 +0000
1f5b3bd803Accepting request 734939 from devel:languages:python
Dominique Leuenberger
2019-10-10 09:51:05 +0000
858a1eb090- Add patch to not use pinned dependencies and to work in our distro: * unpin-deps.patch
Tomáš Chvátal
2019-10-04 08:27:26 +0000
8afd70bd6fAccepting request 734809 from home:mcalabkova:branches:devel:languages:python
Tomáš Chvátal
2019-10-04 07:42:00 +0000
c1b482cbd6Accepting request 687619 from devel:languages:python
Dominique Leuenberger
2019-03-29 19:37:03 +0000
ffb348bdb3- Update to 2.2.5: * The last except handler wins when inferring variables bound in an except handler. - Update to 2.2.4:
Tomáš Chvátal
2019-03-11 09:48:36 +0000
02757c0205Accepting request 682136 from devel:languages:python
Dominique Leuenberger
2019-03-08 10:01:21 +0000
0b20e649d5- Update to 2.2.1: * Many changes inside, see ChangeLog
Tomáš Chvátal
2019-03-06 12:28:08 +0000
fc24af37e1Accepting request 662218 from devel:languages:python
Dominique Leuenberger
2019-01-03 17:04:18 +0000
f6073afbcbAccepting request 662194 from devel:languages:python:avocadoOndřej Súkup2018-12-31 18:08:04 +0000
1d8c732a23Accepting request 655705 from devel:languages:python
Dominique Leuenberger
2018-12-14 19:46:29 +0000
20d170daa7- Version update to 2.1.0: * Many changes around, see ChangeLog file
Tomáš Chvátal
2018-12-06 14:40:55 +0000
20f068b064Accepting request 636609 from devel:languages:python
Dominique Leuenberger
2018-09-26 12:53:31 +0000
d60d343127Accepting request 636333 from home:jengelh:branches:devel:languages:python
Tomáš Chvátal
2018-09-18 09:13:53 +0000
35c649bff6- Version update to 2.0.4: * only supports python3.0+ * Many many changes see ChangeLog fixes
Tomáš Chvátal
2018-09-14 15:38:03 +0000
6f45afc261Accepting request 623122 from devel:languages:python
Dominique Leuenberger
2018-07-21 08:07:38 +0000
842f102c9b- Version update to 1.6.5: * Many various bugfixes making the pylint tests pass * For details see ChangeLog
Tomáš Chvátal
2018-07-16 12:10:18 +0000
002cd0e736Accepting request 568846 from devel:languages:python
Dominique Leuenberger
2018-01-25 11:37:01 +0000
3daab206ac- Version update to 1.6.1: * Various fixes for python3 * Various pylint issues fixes * For detailed log see ChangeLog - Disable tests for now as they seem to fail, upstream knows
Tomáš Chvátal
2018-01-24 10:13:11 +0000
3e66e1ba21Accepting request 481993 from devel:languages:python
Yuchen Lin
2017-04-12 15:31:55 +0000