diff options
author | John L. Villalovos <john@sodarock.com> | 2021-04-18 12:06:07 -0700 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2021-04-27 21:04:58 -0700 |
commit | 6aef2dadf715e601ae9c302be0ad9958345a97f2 (patch) | |
tree | d254ecefd18029eb15d28bec0f9293caa4219e6b /gitlab/tests/test_cli.py | |
parent | a6b6cd4b598ab6eddcf3986486d43e5cdc990e09 (diff) | |
download | gitlab-6aef2dadf715e601ae9c302be0ad9958345a97f2.tar.gz |
chore: mypy: Disallow untyped definitions
Be more strict and don't allow untyped definitions on the files we
check.
Also this adds type-hints for two of the decorators so that now
functions/methods decorated by them will have their types be revealed
correctly.
Diffstat (limited to 'gitlab/tests/test_cli.py')
-rw-r--r-- | gitlab/tests/test_cli.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gitlab/tests/test_cli.py b/gitlab/tests/test_cli.py index 2246369..aed9fc4 100644 --- a/gitlab/tests/test_cli.py +++ b/gitlab/tests/test_cli.py @@ -26,7 +26,6 @@ from contextlib import redirect_stderr # noqa: H302 import pytest from gitlab import cli -import gitlab.v4.cli def test_what_to_cls(): @@ -94,14 +93,14 @@ def test_base_parser(): def test_v4_parse_args(): - parser = cli._get_parser(gitlab.v4.cli) + parser = cli._get_parser() args = parser.parse_args(["project", "list"]) assert args.what == "project" assert args.whaction == "list" def test_v4_parser(): - parser = cli._get_parser(gitlab.v4.cli) + parser = cli._get_parser() subparsers = next( action for action in parser._actions |