From 1324ce1a439befb4620953a4df1f70b74bf70cbd Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Fri, 3 Jun 2022 16:47:51 -0700 Subject: chore: enable pylint check: "redefined-outer-name", Enable the pylint check "redefined-outer-name" and fix the errors detected. --- gitlab/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gitlab/cli.py') diff --git a/gitlab/cli.py b/gitlab/cli.py index 18618eb..d6e7d77 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -252,10 +252,10 @@ def _get_base_parser(add_help: bool = True) -> argparse.ArgumentParser: def _get_parser() -> argparse.ArgumentParser: # NOTE: We must delay import of gitlab.v4.cli until now or # otherwise it will cause circular import errors - import gitlab.v4.cli + from gitlab.v4 import cli as v4_cli parser = _get_base_parser() - return gitlab.v4.cli.extend_parser(parser) + return v4_cli.extend_parser(parser) def _parse_value(v: Any) -> Any: -- cgit v1.2.1