Skip to main content

flake8 extension to warn on unused function arguments

Project description


A flake8 plugin that checks for unused function arguments.

This package adds the following warnings:

  • U100 - An unused argument.
  • U101 - An unused argument starting with an underscore

Configuration options also exist:

  • unused-arguments-ignore-abstract-functions - don't show warnings for abstract functions.
  • unused-arguments-ignore-stub-functions - don't show warnings for empty functions.
  • unused-arguments-ignore-variadic-names - don't show warnings for unused *args and **kwargs.



  • Check nested functions.
  • Don't crash if an attribute is used in a raise statement.


  • Whoops, report the right version when using flake8 --help.


  • The first unused argument in a @classmethod decorated function wasn't properly detected. Thanks to Sebastian Dietrich for contributing the fix!


  • Stub functions that have docstrings are now correctly detected as stub functions
  • Functions with only a docstring are considered stub functions


  • The positions reported are now for the arguments themselves, rather than the function


  • Wrong project name in the readme, whoopsies


  • treat functions that start with "raise NotImplementedError()" as stub functions


  • fixed error in packaging


  • initial release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for flake8-unused-arguments, version 0.0.9
Filename, size File type Python version Upload date Hashes
Filename, size flake8_unused_arguments-0.0.9-py3-none-any.whl (5.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size flake8-unused-arguments-0.0.9.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page