divmod-dev team mailing list archive
-
divmod-dev team
-
Mailing list archive
-
Message #00221
[Bug 949563] Re: Detect unused function parameters
Actually, I don't think that pyflakes should do this. It's perfectly
valid to have a function which accepts a bunch of parameters that it
doesn't use, either because it's an implementation of an interface
(maybe even a no-op implementation!) that doesn't require a parameter
that another implementation might, or because it's accepting parameters
that it may wish to use in the future.
** Changed in: pyflakes
Importance: Undecided => Wishlist
** Changed in: pyflakes
Status: New => Triaged
** Changed in: pyflakes
Status: Triaged => Won't Fix
--
You received this bug notification because you are a member of Divmod-
dev, which is the registrant for Pyflakes.
https://bugs.launchpad.net/bugs/949563
Title:
Detect unused function parameters
Status in Pyflakes:
Won't Fix
Bug description:
Currently pyflakes 0.5 does not detect unused function arguments.
To reproduce:
$ echo "def foo(bar): pass" | pyflakes
This should warn that bar is never used, but it doesn't.
To manage notifications about this bug go to:
https://bugs.launchpad.net/pyflakes/+bug/949563/+subscriptions
Follow ups
References