-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redefinition of _
function results in warning
#1032
Comments
PR #1094 contains function |
…implementations Closes pylint-dev#1032 and pylint-dev#1034
…implementations Closes pylint-dev#1032 and pylint-dev#1034
…implementations Closes pylint-dev#1032 and pylint-dev#1034 fix python version guard remove dead code drop redundant exception caught, improve coverage
…implementations Closes pylint-dev#1032 and pylint-dev#1034
Is this fixed? I still get
Also, is there a way to specify some function name allowing to be redefined? |
@eight04 it's not yet released. |
Steps to reproduce
The stdlib docs suggest defining specializations of singledispatch functions as
_
(see second example of https://docs.python.org/3.5/library/functools.html#functools.singledispatch)But pylint warns on
that the last definition redefines
_
that has been defined 4 lines above.Expected behavior
No warning.
pylint --version output
pylint 1.6.4,
astroid 1.4.7
Python 3.5.2 (default, Jun 28 2016, 08:46:01)
[GCC 6.1.1 20160602]
The text was updated successfully, but these errors were encountered: