Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move from % syntax to format or f-strings | Pierre Sassoulas | 2021-02-17 | 1 | -18/+9 |
| | | | | This is possible with python 3.6 | ||||
* | Remove the # coding, since PEP3120 the default is UTF8 | Pierre Sassoulas | 2021-02-17 | 1 | -1/+0 |
| | |||||
* | Fix the new violations of super-without-arguments | Claudiu Popa | 2020-05-12 | 1 | -1/+1 |
| | |||||
* | Add missing copyright annotations for the past releases | Claudiu Popa | 2020-04-27 | 1 | -1/+5 |
| | |||||
* | ``BoundMethod.implicit_parameters`` returns a proper value for ``__new__`` | Claudiu Popa | 2020-03-26 | 1 | -0/+3 |
| | | | | Close PyCQA/pylint#2335 | ||||
* | ``NodeNG.bool_value()`` gained an optional ``context`` parameter | Claudiu Popa | 2020-03-05 | 1 | -5/+5 |
| | | | | | | | | | We need to pass an inference context downstream when inferring the boolean value of a node in order to prevent recursion errors and double inference. This fix prevents a recursion error with dask library. Close PyCQA/pylint#2985 | ||||
* | Add support for inferring properties | Claudiu Popa | 2019-12-04 | 1 | -6/+5 |
| | | | | | These new capabilities will allow inferring both the `property` builtin as well as property attributes such as `.deleter` and `.setter`. | ||||
* | Allow inferring positional only arguments on Python 3.8 | Claudiu Popa | 2019-11-14 | 1 | -1/+1 |
| | |||||
* | Fix lint warnings | Claudiu Popa | 2019-10-11 | 1 | -0/+1 |
| | |||||
* | Remove redundant compatibility code (#693) | Hugo van Kemenade | 2019-09-10 | 1 | -8/+4 |
| | |||||
* | Replace InferenceError bubble up with a simple raise | Claudiu Popa | 2019-07-16 | 1 | -1/+1 |
| | |||||
* | ``igetattr`` raises ``InferenceError`` on re-inference of the same object | Claudiu Popa | 2019-04-09 | 1 | -1/+5 |
| | | | | | | | | | | | This prevents ``StopIteration`` from leaking when we encounter the same object in the current context, which could result in various ``RuntimeErrors`` leaking in other parts of the inference. Until we get a global context per inference, the solution is sort of a hack, as with the suggested global context improvement, we could theoretically reuse the same inference object. Close #663 | ||||
* | Deleting irrelevant comment | hippo91 | 2019-01-27 | 1 | -5/+0 |
| | |||||
* | Deleting a conditional that prevent return of a BoundMethod instance | hippo91 | 2019-01-26 | 1 | -4/+3 |
| | |||||
* | Revert "Just breakpoint to debug and mark the origin of the problem" | hippo91 | 2018-12-22 | 1 | -1/+0 |
| | | | | This reverts commit b3fa94a409ba16c3b556cf08ce650f2dd587e73f. | ||||
* | Just breakpoint to debug and mark the origin of the problem | hippo91 | 2018-12-22 | 1 | -0/+1 |
| | |||||
* | Fix a bug where an Attribute used as a base class was triggering a crash | Claudiu Popa | 2018-12-04 | 1 | -0/+2 |
| | | | | Close #626 | ||||
* | Use copy_context where it makes sense | Claudiu Popa | 2018-10-10 | 1 | -1/+0 |
| | |||||
* | Initial formatting of astroid | Claudiu Popa | 2018-10-02 | 1 | -79/+116 |
| | |||||
* | `async` functions are now inferred as `AsyncGenerator` when inferring their ↵ | Claudiu Popa | 2018-08-16 | 1 | -0/+16 |
| | | | | call result. | ||||
* | infer_call_result can raise InferenceError so make sure to handle that for ↵ | Claudiu Popa | 2018-07-31 | 1 | -5/+8 |
| | | | | | | | | | | | the call sites where it is used infer_call_result started recently to raise InferenceError for objects for which it could not find any returns. Previously it was silently raising a StopIteration, which was especially leaking when calling builtin methods. Since it is after all an inference method, it is expected that it could raise an InferenceError rather than returning nothing. Close PyCQA/pylint#2350 | ||||
* | Spelling fixes | Ville Skyttä | 2018-07-24 | 1 | -2/+2 |
| | |||||
* | Update the copyright noticesastroid-2.0 | Claudiu Popa | 2018-07-15 | 1 | -2/+10 |
| | |||||
* | Fix attributes of ancestor classes from appearing in attribute inference | Bryce Guinta | 2018-07-13 | 1 | -7/+2 |
| | | | | Close #581 | ||||
* | Fix type.__new__ calls with incorrect arguments creating instances | Bryce Guinta | 2018-07-08 | 1 | -1/+1 |
| | |||||
* | Avoid calling object.__new__ for type.__new__ | Bryce Guinta | 2018-07-05 | 1 | -1/+3 |
| | | | | See #581 | ||||
* | Allow technically valid (but weird) type.__new__ calls | Bryce Guinta | 2018-07-05 | 1 | -9/+5 |
| | | | | Ignore non-string keys | ||||
* | Fix inference for nested calls | Bryce Guinta | 2018-07-05 | 1 | -11/+6 |
| | | | | | | | | | Add context_lookup to the context class as extra_context. Deliver the correct context with the correct boundnode for function argument nodes. Close #177 | ||||
* | Refactor assinging boundnode to context | Bryce Guinta | 2018-07-04 | 1 | -10/+2 |
| | | | | | Code in multiple places had the same pattern for infering call results. | ||||
* | Fix issue with inherited __call__ improperly inferencing self | Bryce Guinta | 2018-06-29 | 1 | -0/+5 |
| | |||||
* | Fix useless-object-inheritance lint error (#573) | Nick Drozd | 2018-06-28 | 1 | -1/+1 |
| | | | See https://github.com/PyCQA/pylint/pull/2209 | ||||
* | Prevent Const copy resulting in recursion | Bryce Guinta | 2018-06-23 | 1 | -1/+7 |
| | | | | | | | | | | | | Calling object.__new__ on a Const node would result in infinite recursion Fix infinite recursion by explicitly raising AttributeError if __getattr__ is called for value See https://nedbatchelder.com/blog/201010/surprising_getattr_recursion.html for more details Close #565 | ||||
* | Add cache_readonly to POSSIBLE_PROPERTIES for pandas | Daniel Colascione | 2018-06-21 | 1 | -1/+1 |
| | |||||
* | Remove useless TODOs that are either issues in the issue tracker or things ↵ | Claudiu Popa | 2018-06-12 | 1 | -3/+1 |
| | | | | which we'll never get to fix/change | ||||
* | Convert to yield from | Nick Drozd | 2018-06-08 | 1 | -2/+1 |
| | | | | | | | I tried this to see if it would improve performance. It didn't, but it does look nicer, so we might as well keep it. See also 5fd5aa81483e709cb5c464c7d4bb37c8c39f2afa | ||||
* | Callables gained an implicit_parameter() method which returns the number of ↵ | Claudiu Popa | 2018-06-07 | 1 | -0/+6 |
| | | | | implicit parameters they have (self/cls etc) | ||||
* | Fix lint | Claudiu Popa | 2018-06-06 | 1 | -1/+1 |
| | |||||
* | Subclasses of *property* are now interpreted as properties | Claudiu Popa | 2018-06-05 | 1 | -1/+18 |
| | | | | Close PyCQA/pylint#1601 | ||||
* | Replace some for statements with yield from | Claudiu Popa | 2018-05-31 | 1 | -5/+2 |
| | |||||
* | Remove reraise() in favour of using raise..from | Claudiu Popa | 2018-05-31 | 1 | -8/+8 |
| | |||||
* | Remove six from a couple of files | Claudiu Popa | 2018-05-31 | 1 | -2/+4 |
| | |||||
* | Protect against passing lookup_class to non-class proxied objects | Claudiu Popa | 2018-05-26 | 1 | -1/+4 |
| | | | | | | | | | In some cases the _proxied object points to another Instance, not to the Class of an Instance node (usually this happens with enum and with our hardcoded inference support for this library). Instead of getting a TypeError, we check before if the _proxied matches what we expect. Found by #2080 | ||||
* | Add context_lookup to infer_call_result for function arguments | Bryce Guinta | 2018-03-30 | 1 | -6/+25 |
| | | | | | | | | This allows inference of function arguments to be different than the inference of the function body Currently this is only used for object.__new__(cls) calls but can be expanded later | ||||
* | Fix lint warnings | Claudiu Popa | 2017-10-12 | 1 | -9/+9 |
| | |||||
* | Fix an infinite loop that could occur during inference of __nonzero__. (#412) | Calen Pennington | 2017-03-11 | 1 | -1/+2 |
| | |||||
* | Make ClassDefs support keyword arguments. (#384) | Derek Gustafson | 2017-01-22 | 1 | -1/+1 |
| | |||||
* | Remove pylint errors | Derek Gustafson | 2016-12-03 | 1 | -0/+5 |
| | |||||
* | Correct the generator comprehension to return Instances only when the ↵ | Claudiu Popa | 2016-11-01 | 1 | -1/+1 |
| | | | | element is not Uninferable. | ||||
* | Fix some pylint errors over the code base. | Claudiu Popa | 2016-08-24 | 1 | -1/+0 |
| | |||||
* | Even more granular copyrights (thanks to copyrite) | Claudiu Popa | 2016-07-22 | 1 | -2/+5 |
| |