mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
![]() ## Summary This pull request resolves some rule thrashing identified in #12427 by allowing for unused arguments when using `NotImplementedError` with a variable per [this comment](https://github.com/astral-sh/ruff/issues/12427#issuecomment-2384727468). **Note** This feels a little heavy-handed / edge-case-prone. So, to be clear, I'm happy to scrap this code and just update the docs to communicate that `abstractmethod` and friends should be used in this scenario (or similar). Just let me know what you'd like done! fixes: #12427 ## Test Plan I added a test-case to the existing `ARG.py` file and ran... ```sh cargo run -p ruff -- check crates/ruff_linter/resources/test/fixtures/flake8_unused_arguments/ARG.py --no-cache --preview --select ARG002 ``` --------- Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com> |
||
---|---|---|
.. | ||
ARG.py | ||
ignore_variadic_names.py |