summaryrefslogtreecommitdiff
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
* WIP : Add python 3.10 supportsupport-python-3.10Pierre Sassoulas2021-04-241-0/+1
|
* Upgrade changelog for setuptoolsPierre Sassoulas2021-04-241-1/+4
| | | | Add changelog entry for renaming of License
* Change numversion to __version__ in __pkginfo__Pierre Sassoulas2021-04-241-0/+3
|
* Add same github actions than pylintPierre Sassoulas2021-04-231-0/+2
| | | | But withtout benchmark and speeling that are specific to pylint.
* Add changelog entry for renaming of LicensePierre Sassoulas2021-04-231-0/+2
|
* Remove unused debian build files and upgrade changelogPierre Sassoulas2021-04-231-0/+2
|
* Fix crash when evaluating typing.NamedTuple (#956)Marc Mueller2021-04-211-0/+4
|
* Add inference tip for ``typing.Tuple`` (#948)Marc Mueller2021-04-211-0/+7
|
* Remove non-breaking whitespaces from the codebasePierre Sassoulas2021-04-181-2/+2
|
* Remove all warnings in generated documentationPierre Sassoulas2021-04-181-24/+20
|
* Prepare for 2.5.3 releaseastroid-2.5.3Pierre Sassoulas2021-04-101-1/+1
|
* Modify infernce tip for typing.Generic and typing.Annotated with ↵Marc Mueller2021-04-101-0/+6
| | | | | | | ``__class_getitem__`` (#931) * Modify infernce tip for typing.Generic and typing.Annotated with __class_getitem__ * Fix issue with slots caching * Clean typing.Generic from mro
* Use inference_tip for typing.TypedDict brain (#928)Marc Mueller2021-04-071-0/+3
|
* Bug pylint 4206 (#921)hippo912021-04-061-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Takes into account the fact that inferring subscript when the node is a class may use the __class_getitem__ method of the current class instead of looking for __getitem__ in the metaclass. * OrderedDict in the collections module inherit from dict which is C coded and thus have no metaclass but starting from python3.9 it supports subscripting thanks to the __class_getitem__ method. * check_metaclass becomes a static class method because we need it in the class scope. The brain_typing module does not add a ABCMeta_typing class thus there is no need to test it. Moreover it doesn't add neither a __getitem__ to the metaclass * The brain_typing module does not add anymore _typing suffixed classes in the mro * The OrderedDict class inherits from C coded dict class and thus doesn't have a metaclass. * When trying to inherit from typing.Pattern the REPL says : TypeError: type 're.Pattern' is not an acceptable base type * The REPL says that Derived as ABCMeta for metaclass and the mro is Derived => Iterator => Iterable => object * Adds comments * Starting with Python39 some collections of the collections.abc module support subscripting thanks to __class_getitem__ method. However the wat it is implemented is not straigthforward and instead of complexifying the way __class_getitem__ is handled inside the getitem method of the ClassDef class, we prefer to hack a bit. * Thanks to __class_getitem__ method there is no need to hack the metaclass * SImplifies the inference system for typing objects before python3.9. Before python3.9 the objects of the typing module that are alias of the same objects in the collections.abc module have subscripting possibility thanks to the _GenericAlias metaclass. To mock the subscripting capability we add __class_getitem__ method on those objects. * check_metaclass_is_abc become global to be shared among different classes * Create a test class dedicated to the Collections brain * Rewrites and adds test * Corrects syntax error * Deque, defaultdict and OrderedDict are part of the _collections module which is a pure C lib. While letting those class mocks inside collections module is fair for astroid it leds to pylint acceptance tests fail. * Formatting according to black * Adds two entries * Extends the filter to determine what is subscriptable to include OrderedDict * Formatting according to black * Takes into account the fact that inferring subscript when the node is a class may use the __class_getitem__ method of the current class instead of looking for __getitem__ in the metaclass. * OrderedDict in the collections module inherit from dict which is C coded and thus have no metaclass but starting from python3.9 it supports subscripting thanks to the __class_getitem__ method. * check_metaclass becomes a static class method because we need it in the class scope. The brain_typing module does not add a ABCMeta_typing class thus there is no need to test it. Moreover it doesn't add neither a __getitem__ to the metaclass * The brain_typing module does not add anymore _typing suffixed classes in the mro * The OrderedDict class inherits from C coded dict class and thus doesn't have a metaclass. * When trying to inherit from typing.Pattern the REPL says : TypeError: type 're.Pattern' is not an acceptable base type * The REPL says that Derived as ABCMeta for metaclass and the mro is Derived => Iterator => Iterable => object * Adds comments * Starting with Python39 some collections of the collections.abc module support subscripting thanks to __class_getitem__ method. However the wat it is implemented is not straigthforward and instead of complexifying the way __class_getitem__ is handled inside the getitem method of the ClassDef class, we prefer to hack a bit. * Thanks to __class_getitem__ method there is no need to hack the metaclass * SImplifies the inference system for typing objects before python3.9. Before python3.9 the objects of the typing module that are alias of the same objects in the collections.abc module have subscripting possibility thanks to the _GenericAlias metaclass. To mock the subscripting capability we add __class_getitem__ method on those objects. * check_metaclass_is_abc become global to be shared among different classes * Create a test class dedicated to the Collections brain * Rewrites and adds test * Corrects syntax error * Deque, defaultdict and OrderedDict are part of the _collections module which is a pure C lib. While letting those class mocks inside collections module is fair for astroid it leds to pylint acceptance tests fail. * Formatting according to black * Adds two entries * Extends the filter to determine what is subscriptable to include OrderedDict * Formatting according to black * Takes into account AWhetter remarks * Deactivates access to __class_getitem__ method * OrderedDict appears in typing module with python3.7.2 * _alias function in the typing module appears with python3.7 * Formatting according to black * _alias function is used also for builtins type and not only for collections.abc ones * Adds tests for both builtins type that are subscriptable and typing builtin alias type that are also subscriptable * No need to handle builtin types in this brain. It is better suited inside brain_bulitin_inference * Adds brain to handle builtin types that are subscriptable starting with python39 * Formatting according to black * Uses partial function instead of closure in order pylint acceptance to be ok * Handling the __class_getitem__ method associated to EmptyNode for builtin types is made directly inside the getitem method * infer_typing_alias has to be an inference_tip to avoid interferences between typing module and others (collections or builtin) * Formatting * Removes useless code * Adds comment * Takes into account cdce8p remarks * Formatting * Style changes Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add 2.5.3 to the changelog2.5Pierre Sassoulas2021-03-281-0/+5
|
* Add 2.5.2 in changelogPierre Sassoulas2021-03-281-2/+1
|
* Iterate over Keywords when using ClassDef.get_childrenMarc Mueller2021-03-071-0/+4
|
* Adds an entryhippo912021-03-051-0/+4
|
* Add 2.5.2 and 2.6.0 in the changelogPierre Sassoulas2021-02-281-0/+10
|
* Solves "Duplicates found in MROs" false positives. (#905, #916)Marc Mueller2021-02-281-0/+9
| | | | | | | * Adds inference support for all typing types that are defined through _alias function * Instead of creating a new class (by the mean of TYPING_TYPE_TEMPLATE) infer the origin class : i.e MutableSet = _alias(collections.MutableSet ...) origin is the class in collections module. Needs to add __getitem method on its metaclass so that is support indexing (MutableSet[T]). * Enable _alias mocking and testing only if python version is at least 3.7 Co-authored-by: hippo91 <guillaume.peillex@gmail.com>
* Update ChangeLoghippo912021-02-281-2/+2
| | | | Adds an entry for next release (2.5.1).
* Don't transform dataclass ClassVars (#914)Marc Mueller2021-02-281-0/+2
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Improve typing.TypedDict inferenceMarc Mueller2021-02-281-0/+3
|
* Fix trailing whitespacesMarc Mueller2021-02-271-1/+1
|
* Adds an entryhippo912021-02-211-0/+9
|
* Prepare version 2.5hippo912021-02-151-2/+2
|
* Adds an entryhippo912021-02-101-0/+4
|
* Merge branch 'master' into masterhippo912021-02-071-1/+38
|\
| * Corrected the parent of function type comment nodesAshley Whetter2021-02-071-0/+7
| | | | | | | | | | | | | | These nodes used to be parented to their original ast.FunctionDef parent but are now correctly parented to their astroid.FunctionDef parent. Closes #851
| * Add support of 'six.with_metaclass' (#841)Francis Charette Migneault2021-02-071-0/+4
| | | | | | Closes #713
| * Julien palard mdk/class getitem (#885)hippo912021-01-241-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add missing __class_getitem__ to deque. * The __class_getitem__ method is added only for python versions above 3.9 * Adds two tests that ensure that __class_getitem__ method is not present for python versions prior to 3.9 but present for python versions above 3.9 * Reorganizes * Adds an entry * Add Julien Palard in copyright Co-authored-by: Julien Palard <julien@palard.fr>
| * Merge branch 'sum_and_multiply' of https://github.com/hippo91/astroidsum_and_multiplyhippo912021-01-231-0/+4
| |\
| | * Merge branch 'master' into sum_and_multiplyhippo912020-06-201-4/+172
| | |\
| | * \ Merge branch 'master' into sum_and_multiplyhippo912019-12-301-0/+4
| | |\ \
| | * | | Added an entryhippo912019-12-301-0/+5
| | | | |
| * | | | Merge pull request #883 from hippo91/bug_pylint_4001hippo912021-01-231-0/+3
| |\ \ \ \ | | | | | | | | | | | | Bug pylint 4001
| | * | | | Adds an entryhippo912021-01-191-0/+3
| | | | | |
| * | | | | brain: Add `__class_getitem__` to `subprocess.Popen` starting from Python 3.9Damien Baty2021-01-181-0/+4
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is necessary for pylint to detect that `subprocess.Popen` is subscriptable, starting from Python 3.9 (see PyCQA/pylint#4034). $ python3.9 >>> import subprocess >>> subprocess.Popen.__class_getitem__ <bound method GenericAlias of <class 'subprocess.Popen'>>
| * | | | ``is_generator`` correctly considers `Yield` nodes in `AugAssign` nodesClaudiu Popa2021-01-011-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a false positive with the `assignment-from-no-return` pylint check. Close PyCQA/pylint#3904
| * | | | Fix a crash in inference caused by `Uninferable` container elementsClaudiu Popa2021-01-011-0/+4
| | | | | | | | | | | | | | | | | | | | Close #866
* | | | | Add changelogDavid Gilman2020-12-311-0/+6
|/ / / /
* | | | Fix a bug for dunder methods inference of function objectsClaudiu Popa2020-12-301-0/+4
| | | | | | | | | | | | | | | | Fixes #819
* | | | Merge branch 'master' into bug_pylint_3856hippo912020-12-301-0/+4
|\ \ \ \
| * \ \ \ Merge branch 'master' into fix_deprecated_importlib_methodshippo912020-12-291-4/+12
| |\ \ \ \
| * | | | | Adds an entryhippo912020-12-241-0/+4
| | | | | |
* | | | | | Adds an entryhippo912020-12-291-0/+3
| |/ / / / |/| | | |
* | | | | Do not set the release date until it has been really released.hippo912020-12-291-1/+2
| | | | |
* | | | | Adds release date for 2.5.0hippo912020-12-271-7/+1
| | | | |
* | | | | Fix a crash in functools.partial inference when the arguments cannot be ↵Claudiu Popa2020-12-271-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | determined Close PyCQA/pylint#3776
* | | | | Do not crash when encountering starred assignments in enums.Claudiu Popa2020-12-261-0/+6
| | | | | | | | | | | | | | | | | | | | Close #835