pylint icon indicating copy to clipboard operation
pylint copied to clipboard

unused-argument in .pyi stub file

Open davetapley opened this issue 4 months ago • 1 comments

Bug description

class TestClient:
    def simulate_get(self, path: str) -> Result:
        ...

Configuration

No response

Command used

pylint typings/falcon/testing/client.pyi

Pylint output

************* Module client
typings/falcon/testing/client.pyi:13:27: W0613: Unused argument 'path' (unused-argument)

Expected behavior

No error

Pylint version

pylint 3.0.2
astroid 3.0.1
Python 3.11.6 (main, Nov  2 2023, 02:14:33) [GCC 9.4.0]

OS / Environment

Ubuntu 20.04.6 LTS

Additional dependencies

No response

davetapley avatar Feb 07 '24 23:02 davetapley

Thanks for the report. There are a lot of messages that don't make sense with .pyi stubs. No one has compiled a list yet. See #9096 for more discussion. Happy to keep this open as an issue for now, since it's one that will come up a lot.

jacobtylerwalls avatar Feb 10 '24 15:02 jacobtylerwalls