summaryrefslogtreecommitdiff
path: root/astroid/interpreter
Commit message (Collapse)AuthorAgeFilesLines
* Use new style super when applicablesimplification-for-python3.6-codePierre Sassoulas2021-02-171-1/+1
|
* Remove IOError that are an alias to OSError see PEP3151Pierre Sassoulas2021-02-171-1/+1
|
* Remove the # coding, since PEP3120 the default is UTF8Pierre Sassoulas2021-02-171-1/+0
|
* Update copyright noticehippo912021-02-152-1/+2
|
* pylint + black formattinghippo912021-02-101-15/+7
|
* Adds docstring and reformat attr_fset methodhippo912021-02-101-11/+15
|
* In the attr_fset method, retrieve the FunctionDef corresponding to setter ↵hippo912021-02-101-13/+20
| | | | property and then infer the result of a call to this function
* Back to original attr_fget definitionhippo912021-02-101-13/+1
|
* Unify the way property arguments are declaredhippo912021-02-101-1/+13
|
* Setting hard the arguments of method property setterhippo912021-02-101-2/+13
|
* Adds the attr_fset propertyhippo912021-02-101-0/+22
|
* Fix a bug for dunder methods inference of function objectsClaudiu Popa2020-12-301-0/+1
| | | | Fixes #819
* Update astroid/interpreter/_import/spec.py hippo912020-12-291-1/+1
| | | | | Taking into account @GergelyKalmar suggestion Co-authored-by: Gergely Kalmár <gergely.kalmar@logikal.jp>
* Update astroid/interpreter/_import/spec.py hippo912020-12-291-1/+1
| | | | | Taking into account @GergelyKalmar suggestion Co-authored-by: Gergely Kalmár <gergely.kalmar@logikal.jp>
* Update astroid/interpreter/_import/spec.py hippo912020-12-291-1/+1
| | | | | Taking into account @GergelyKalmar suggestion Co-authored-by: Gergely Kalmár <gergely.kalmar@logikal.jp>
* Update astroid/interpreter/_import/spec.py hippo912020-12-291-1/+1
| | | | | Taking into account @GergelyKalmar suggestion Co-authored-by: Gergely Kalmár <gergely.kalmar@logikal.jp>
* Merge branch 'master' into fix_deprecated_importlib_methodshippo912020-12-292-2/+4
|\
| * New copyright noticeshippo912020-12-272-2/+4
| |
* | Reformated according to blackhippo912020-12-241-1/+5
| |
* | Adds copyright noticehippo912020-12-241-0/+1
| |
* | Adds docstring to the _precache_zipimporters functionhippo912020-12-241-0/+10
| |
* | Changes the return value of the _precache_zipimporters function so that only ↵hippo912020-12-241-1/+1
|/ | | | zipimporter instances are returned.
* Remove dependency on imp.Peter Kolbus2020-11-271-44/+57
|
* Explicitly return None on certain functionsRaphael Gaschignard2020-10-281-1/+1
| | | | This fixes some `inconsistent-return-statement` pylint errors
* Add exception inference for `UnicodeDecodeError` (#797)Claudiu Popa2020-05-291-0/+7
| | | Close PyCQA/pylint#3639
* Properly construct the arguments of infered property descriptors (#796)Claudiu Popa2020-05-281-9/+24
| | | Close PyCQA/pylint#3648
* Fix the new violations of super-without-argumentsClaudiu Popa2020-05-121-1/+1
|
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-272-1/+5
|
* Rename variable to not shadow builtinClaudiu Popa2019-12-161-3/+3
|
* Set arguments on inferred properties and property descriptors such as fget()Claudiu Popa2019-12-151-1/+3
|
* Add support for inferring propertiesClaudiu Popa2019-12-041-0/+45
| | | | | These new capabilities will allow inferring both the `property` builtin as well as property attributes such as `.deleter` and `.setter`.
* Don't set a parent for descriptor bound methods created on `__get__` accessClaudiu Popa2019-11-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is a very tricky bug and requires particular circumstances to reproduce. For `f.__get__` we have a custom binding interface that generates bound methods on the fly whenever we encounter an `f.__get__(None, ...)` call. On function creation, we set the name of the function as a variable in the frame of the function's parent. e.g. for the following, we'll set `variable` as a name in the function's locals: class A: ... def variable(self): # variable will be part of A.locals pass Now the bug that this commit solves requires a `__get__()` binding such as the one mentioned as well as passing an object's dunder attribute to `__get__`, such as `object.__eq__`. The result is that the `None` that was passed in `f.__get__` will have as a frame the function where the descriptor binding method was called, which will result in `__eq__` to be marked as a variable of the function that was called, which is completely wrong. As a solution we don't set any parent for descriptor bound methods, which are created on the fly and thus the parent might be wrong altogether. Close PyCQA/pylint#3225
* Fix lint warningsClaudiu Popa2019-10-111-3/+8
|
* Remove redundant compatibility code (#693)Hugo van Kemenade2019-09-101-1/+1
|
* Build FunctionDef.__get__ to use positional only arguments when inferring ↵Claudiu Popa2019-07-091-4/+8
| | | | the bound method
* Introduce a new argument to `Arguments` for storing the positional only ↵Claudiu Popa2019-07-091-0/+1
| | | | | | | | | annotations The annotations were stored until now in `.annotations` and `kwonlyargs_annotations`, but given the addition of `posonlyargs`, we need to store the positional only annotations somewhere else as well. This new attribute should simplify the handling of annotations for both positional only and positional or keyword parameters.
* Fixed being unable to find distutils submodules by name when in a virtualenv ↵Ashley Whetter2019-05-231-0/+7
| | | | | (#672) Close PyCQA/pylint#73
* Add a proper ``strerror`` inference to the ``OSError`` exceptions.Claudiu Popa2019-02-131-0/+4
| | | | Close PyCQA/pylint#2553
* Add a method to the manager to retrieve the builtins moduleClaudiu Popa2019-01-191-5/+4
|
* Added more builtin exceptions attributes. Close #580Claudiu Popa2019-01-181-1/+43
|
* Use a different prefix for the object model methodsClaudiu Popa2019-01-181-89/+87
| | | | `py` is a bit confusing, instead a new constant is used.
* Add a registry for builtin exception models. Close PyCQA/pylint#1432Claudiu Popa2019-01-171-0/+12
|
* Initial formatting of astroidClaudiu Popa2018-10-024-166/+190
|
* `async` functions are now inferred as `AsyncGenerator` when inferring their ↵Claudiu Popa2018-08-161-0/+20
| | | | call result.
* Spelling fixesVille Skyttä2018-07-241-1/+1
|
* Update the copyright noticesastroid-2.0Claudiu Popa2018-07-154-4/+15
|
* Fix issue causing a pylint test to failBryce Guinta2018-07-061-0/+6
|
* Fix inference for nested callsBryce Guinta2018-07-051-4/+4
| | | | | | | | | Add context_lookup to the context class as extra_context. Deliver the correct context with the correct boundnode for function argument nodes. Close #177
* Fix useless-object-inheritance lint error (#573)Nick Drozd2018-06-282-2/+2
| | | See https://github.com/PyCQA/pylint/pull/2209
* Fix lintingClaudiu Popa2018-06-141-2/+2
|