Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a false negative for too-many-arguments and positional-only and keyword-only arguments #8674

Merged
Prev Previous commit
Next Next commit
Add some disables for too-many-arguments.
  • Loading branch information
mbyrnepr2 committed May 11, 2023
commit 0056721c0a9f526be3caf240ef37434f0829807d
5 changes: 5 additions & 0 deletions pylint/config/argument.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 229,7 @@ class _StoreArgument(_BaseStoreArgument):
https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_argument
"""

# pylint: disable-next=too-many-arguments
def __init__(
self,
*,
Expand Down Expand Up @@ -306,6 307,7 @@ class _DeprecationArgument(_Argument):
https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_argument
"""

# pylint: disable-next=too-many-arguments
def __init__(
self,
*,
Expand Down Expand Up @@ -354,6 356,7 @@ class _ExtendArgument(_DeprecationArgument):
https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_argument
"""

# pylint: disable-next=too-many-arguments
def __init__(
self,
*,
Expand Down Expand Up @@ -398,6 401,7 @@ class _StoreOldNamesArgument(_DeprecationArgument):
https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_argument
"""

# pylint: disable-next=too-many-arguments
def __init__(
self,
*,
Expand Down Expand Up @@ -435,6 439,7 @@ class _StoreNewNamesArgument(_DeprecationArgument):
https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_argument
"""

# pylint: disable-next=too-many-arguments
def __init__(
self,
*,
Expand Down