Normally in Python, you should use _ to indicate that the argument is not used.
def example_basic(unused): pass
becomes
def example_basic(_): pass
Then, if there are several unused arguments, several _ cannot be used because they conflict, so *_ :
def example_multiple(unused1, unused2): pass
becomes
def example_multiple(*_): pass
Finally, what if several non-contiguous arguments are not used?
def example_non_adjacent(unused1, used, unused2): return used
Using multiple _ still does not work, and using *_ will not work because they are not adjacent.
Note that I would really like to change the API, but for the sake of this question, let's say that this is not possible. Is there a way to indicate that it is being ignored without using something like # pylint: disable=unused-argument for PyLint or i-dont-know-what for PyCharm?
EDIT:
I posted an example where it is needed here
python pep8 pylint
TinyTheBrontosaurus
source share