| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
| |
This is used whenever pylint can detect than an overridden method is
useless, relying on super() delegation to implement the same thing as
another method from MRO. In this case, it is enough to not implement
the given method and let it be propagated to the another implementation
from the MRO.
Close #839
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The check was rewritten to be more strict about overridding a method:
- now it complains if the parent method had variadics in the signature,
but the overridden method does not have. For instance, having *args in
the parent method means that it can accept anything, but restricting this
to (a, b) in the overridden method leads to inconsistencies in their
behavior and can potentially introduce new bugs.
- it complains if the number of keyword only parameters are not the
same in the overridden method
- it complains about the names of the parameters. For instance, having
(a, b) in the parent method and changing this to (c, d) in the overridden
method means that the latter one cannot be accessed in the same way
as the parent method, when using keyword arguments.
Close #983
|
|
|
|
| |
positional arguments.
|
|
|
|
| |
different parameters
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* Split words that were inadvertently glued together
* Fix typos in the documentation
* Fix typos in message descriptions
|
|
|
|
| |
if block.
|
| |
|
|
|
|
| |
Implementation of issue #557.
|
|
|
|
|
|
|
|
|
|
|
| |
ClassChecker
Those methods are actually not only emitting the listed messages but also updating
some internal state that is used from other, unrestricted, messages. We should
work on separating responsabilities if we want to restrict method entries upon
messages restriction.
Closes issue #789
|
|
|
|
| |
Close issue #775
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
When support for Python 3.5 was added, AsyncFunctionDef
wasn't handled properly in terms of FunctionDef, which meant
that most of the checks which involved a function were never
called for AsyncFunctionDef. This led to spurious false positives
which occurred when AsyncFunctionDef were analyzed.
Closes #767
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This changeset also brings a couple of changes:
* rrheaders and rcheaders are dropped from html_writer.Table's constructor.
They weren't used at all and it was dead code. This simplified some
if statements.
* _is_attribute_property is used to look for a property assignment
instead on relying on a different implementation.
|
|
|
|
|
|
|
|
|
| |
the latter stabilizes its API.
Currently astroid goes into a total revamp, having a couple of development branches with partially
incompatible APIs, which means that pylint can't rely on the exact location of has_known_bases
and safe_infer until astroid reaches a new major release. With this in mind, these two
functions are backported in pylint again.
|
|
|
|
| |
This way it won't infer all possibles values of a node, only two at most.
|
|
|
|
|
|
|
|
| |
By disabling checker for cases when there're multiple possible values infered
for node. This way we lose some of the inference power, but throw a lot less
false positives.
Fixes issue #695.
|
| |
|
| |
|
|\
| |
| |
| | |
check for class methods declared without a decorator
|
| | |
|
| | |
|
| |
| |
| |
| | |
closes issue #675
|
| |
| |
| |
| | |
related to the issue #675
|
|/
|
|
|
| |
--HG--
branch : fix-685
|
|
|
|
| |
Closes issue #679.
|
|
|
|
|
| |
--HG--
branch : fix-667
|
|
|
|
|
|
|
|
|
|
| |
This is only enabled for python 3.0+ and only for `super` calls with no
arguments.
Fixes issue #667.
--HG--
branch : fix-667
|
| |
|
|
|
|
|
| |
Also, emit a PendingDeprecationWarning if the old names are still
used, this support being removed in pylint 2.0.
|
|
|
|
|
|
|
| |
Also improve a couple of imports and added support for the
old visit_ names. Priority will have the old visit_ names, such
as visit_discard over visit_expr, visit_callfunc over visit_call
etc.
|
|
|
|
| |
Closes issue #604.
|
| |
|
|
|
|
| |
and memoryview, which weren't detected until now).
|
|
|
|
| |
argument when 'bounded'.
|
| |
|
|
|
|
|
| |
This patch improves the way how arguments-differ understands the differences
between classmethods, staticmethods and properties. Closes issue #548.
|
| |
|
| |
|
| |
|
|
|
|
| |
'unexpected-special-method-signature'.
|
|
|
|
|
| |
This is emitted when a special method (dunder method) doesn't have the expected signature,
which can lead to actual errors in the application code. Closes issue #253.
|
|
|
|
|
|
|
|
| |
access-member-before-definition for mixin classes.
Actual errors can occur in mixin classes, but this is controlled by the ignore-mixin-members option,
so if something is a legitimate error, then the user can pass --ignore-mixin-members=no
in order to check these in mixin classes as well. Closes issue #412.
|
| |
|
|
|
|
| |
has checks for structural checking of special methods.
|