mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 15:44:17 +00:00
Merge branch 'remove-parse-known-args-value' into 'master'
Remove unused parameter from `OptionManager.parse_known_args()` See merge request pycqa/flake8!347
This commit is contained in:
commit
16e64e2379
1 changed files with 2 additions and 2 deletions
|
|
@ -433,7 +433,7 @@ class OptionManager(object):
|
||||||
# TODO: refactor callers to not need this
|
# TODO: refactor callers to not need this
|
||||||
return args, args.filenames
|
return args, args.filenames
|
||||||
|
|
||||||
def parse_known_args(self, args=None, values=None):
|
def parse_known_args(self, args=None):
|
||||||
"""Parse only the known arguments from the argument values.
|
"""Parse only the known arguments from the argument values.
|
||||||
|
|
||||||
Replicate a little argparse behaviour while we're still on
|
Replicate a little argparse behaviour while we're still on
|
||||||
|
|
@ -441,7 +441,7 @@ class OptionManager(object):
|
||||||
"""
|
"""
|
||||||
self.generate_epilog()
|
self.generate_epilog()
|
||||||
self.update_version_string()
|
self.update_version_string()
|
||||||
args, rest = self.parser.parse_known_args(args, values)
|
args, rest = self.parser.parse_known_args(args)
|
||||||
return args, rest
|
return args, rest
|
||||||
|
|
||||||
def register_plugin(self, name, version, local=False):
|
def register_plugin(self, name, version, local=False):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue