MCPcopy Create free account
hub / github.com/PyCQA/flake8 / parse_args

Method parse_args

src/flake8/options/manager.py:312–320  ·  view source on GitHub ↗

Proxy to calling the OptionParser's parse_args method.

(
        self,
        args: Sequence[str] | None = None,
        values: argparse.Namespace | None = None,
    )

Source from the content-addressed store, hash-verified

310 self.extended_default_select.extend(error_codes)
311
312 def parse_args(
313 self,
314 args: Sequence[str] | None = None,
315 values: argparse.Namespace | None = None,
316 ) -> argparse.Namespace:
317 """Proxy to calling the OptionParser's parse_args method."""
318 if values:
319 self.parser.set_defaults(**vars(values))
320 return self.parser.parse_args(args)

Calls

no outgoing calls