summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | handle deprecation warnings when walking module membersBecker Awqatty2020-12-261-2/+5
| | | | |
* | | | | Allow lazy-object-proxy >= 1.5.0Konrad Weihmann2020-12-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by allowing every version >= 1.4.0 Fixes #800 Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
* | | | | Add None check on inferred_nodeSimon Hewitt2020-12-241-0/+1
| | | | |
* | | | | Fix starred_assigned_stmts elts cast (introduced in d68f2935)Vilnis Termanis2020-12-242-3/+5
| | | | | | | | | | | | | | | | | | | | Don't replace elts (deque) used in loop with list
* | | | | Allow wrapt 1.12Felix Mölder2020-12-242-2/+2
|/ / / /
* | | | Merge pull request #858 from hippo91/fix_python39_newhippo912020-12-137-5/+61
|\ \ \ \ | | | | | | | | | | Fix python39
| * | | | Remove tests environment 3.9 because it is not python3.9 is not yet availablehippo912020-12-131-3/+0
| | | | |
| * | | | Add tests environment for python3.8 and python3.9hippo912020-12-131-0/+6
| | | | |
| * | | | Formatting according to blackhippo912020-11-221-2/+3
| | | | |
| * | | | Takes into account the fact that in python3.9 NamedTuple in typing module is ↵hippo912020-11-221-0/+19
| | | | | | | | | | | | | | | | | | | | no more a class but a function.
| * | | | Adds an entryhippo912020-11-221-0/+2
| | | | |
| * | | | Adds python3.9 testhippo912020-11-222-4/+6
| | | | |
| * | | | Thanks to the preceeding commit the inference is more precise for class ↵hippo912020-11-221-0/+29
| | | | | | | | | | | | | | | | | | | | decorated with dataclasses
| * | | | When inferring argument takes into account possible posonyargs before ↵hippo912020-11-221-1/+1
| | | | | | | | | | | | | | | | | | | | raising 'too many positional arguments'
* | | | | Merge pull request #857 from pkolbus/remove-imphippo912020-12-138-141/+115
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Remove dependency on imp. Many thanks @pkolbus and @degustaf !
| * | | | | Remove dependency on imp.Peter Kolbus2020-11-278-141/+115
| |/ / / /
* | | | | Merge pull request #844 from timmartin/issue843hippo912020-12-123-1/+21
|\ \ \ \ \ | |/ / / / |/| | | | Fix incorrect MRO being calculated for scoped multiple inheritance
| * | | | Merge branch 'master' into issue843Tim Martin2020-10-314-4/+7
| |\ \ \ \ | |/ / / / |/| | | |
* | | | | Add changelog for memory fixRaphael Gaschignard2020-10-281-0/+1
| | | | |
* | | | | Explicitly return None on certain functionsRaphael Gaschignard2020-10-282-2/+2
| | | | | | | | | | | | | | | | | | | | This fixes some `inconsistent-return-statement` pylint errors
* | | | | Drop tracebacks on Astroid import errors for cachesRaphael Gaschignard2020-10-281-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this change, when there were import failures by Astroid, it would store the error in the module cache (for example a "module not found" error), including tracebacks. These tracebacks would take up a lot of memory, and don't seem to be used for any sort of purpose beyond debugging value. On one project stripping this value entirely reduces memory usage by 75%.
| * | | | Fix formatting regressionTim Martin2020-10-161-9/+1
| | | | |
| * | | | Fix incorrect MRO being calculated for scoped multiple inheritanceTim Martin2020-10-133-1/+29
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | If a class inherits from two bases and the classes are expressed as a non-trivial expression such as qualified with a module name, classes after the first could not be inferred due to reusing the context object in _inferred_bases
* | | | Adds ndarray as rtype for T attribute.hippo912020-09-145-3/+8
| | | | | | | | | | | | Closes PyCQA/pylint#3387
* | | | Teach astroid about Hypothesis (#820)Zac Hatfield-Dodds2020-09-142-0/+55
| | | |
* | | | Add the value parameter in the signature of the __or__ method of the ndarray ↵hippo912020-09-142-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | class.
* | | | Fix warning regarding ABC import from collections (#825)Karthikeyan Singaravelan2020-09-141-2/+2
| | | |
* | | | Skip test for | in dictionaries due to PEP-584 in Python 3.9+ (#829)Karthikeyan Singaravelan2020-09-141-2/+6
| | | |
* | | | Add comments and changelog entry (#830)hippo912020-09-143-2/+10
| | | |
* | | | Squash one-off inference utility functions to help reduce recursion errors ↵Bryce Guinta2020-06-234-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (#804) This also makes debugging a lot simpler reducing the complexity of the function stack.
* | | | Separate string and bytes classes patching (#807)Claudiu Popa2020-06-234-55/+108
| | | | | | | | | | | | Fixes PyCQA/pylint#3599
* | | | Squash one-off inference utility functions to help reduce recursion errors ↵Bryce Guinta2020-06-225-41/+29
| | | | | | | | | | | | | | | | | | | | | | | | (#804) This also makes debugging a lot simpler reducing the complexity of the function stack.
* | | | Fix exception causes all over the codebase (#806)Ram Rachum2020-06-208-37/+39
| |_|/ |/| |
* | | Fix exception causes in helpers.pyRam Rachum2020-06-191-4/+4
| | |
* | | Fix a crash caused by a lookup of a monkey-patched method (#803)Claudiu Popa2020-06-163-2/+29
| | | | | | | | | | | | Close PyCQA/pylint#3686
* | | `FunctionDef.is_generator` properly handles `yield` nodes in `If` tests (#799)Claudiu Popa2020-06-093-0/+22
| | | | | | | | | Close PyCQA/pylint#3583
* | | Prepare 2.4.2Claudiu Popa2020-06-081-1/+1
| | |
* | | Add exception inference for `UnicodeDecodeError` (#797)Claudiu Popa2020-05-293-0/+22
| | | | | | | | | Close PyCQA/pylint#3639
* | | Properly construct the arguments of infered property descriptors (#796)Claudiu Popa2020-05-283-9/+45
| | | | | | | | | Close PyCQA/pylint#3648
* | | brain_mechanize: Add missing methods to transform (#794)Peter Kolbus2020-05-282-2/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The brain transform for mechanize was missing most methods for the Browser class, leading to false positives in pylint, such as: E1101: Instance of 'Browser' has no 'select_form' member (no-member) E1137: 'browser' does not support item assignment (unsupported-assignment-operation) Add missing methods to align with mechanize 0.4.5. Fixes #793. Co-authored-by: Claudiu Popa <pcmanticore@gmail.com>
* | | Note the added parameters for subprocess.check_output().Peter Pentchev2020-05-281-0/+2
| | |
* | | Add more supported parameters to ``subprocess.check_output()``.Peter Pentchev2020-05-281-0/+10
| | |
* | | Drop support for Python 2 in READMEDavid Cain2020-05-211-1/+2
| | | | | | | | | | | | | | | | | | It's 2020 and Python 2 has officially reached its EOL. Update the README to note that Python 2 is no longer officially supported by astroid.
* | | Remove unneeded python2 test dataDavid Cain2020-05-2160-547/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Now that astroid no longer supports Python 2, there's reason to keep this test data around. The `tests/testdata/python2` directory is not referenced at all, so we may safely delete it. It's perhaps just worth moving all of `testdata/python3` into a new directory, but this is a start.
* | | Cleanup formatting errorsClaudiu Popa2020-05-141-3/+7
| | |
* | | `FunctionDef.is_generator` properly handles `yield` nodes in `While` testsClaudiu Popa2020-05-124-1/+28
| | | | | | | | | | | | Close PyCQA/pylint#3519
* | | Fix the new violations of super-without-argumentsClaudiu Popa2020-05-126-48/+44
| | |
* | | Add brain for sqlalchemy.orm.sessionStefan Scherfke2020-05-122-0/+33
| | |
* | | Released 2.4.1Claudiu Popa2020-05-051-1/+1
| | |
* | | Protect against ``infer_call_result`` failing with `InferenceError` in ↵Claudiu Popa2020-05-013-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | `Super.getattr()` (#782) ``infer_call_result`` can raise InferenceError but we were not handling that when retrieving objects from the Super instance. Close PyCQA/pylint#3529