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/__main__.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/__main__.py')
| -rw-r--r-- | gitlab/__main__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gitlab/__main__.py b/gitlab/__main__.py index 14a1fa2..b25cb49 100644 --- a/gitlab/__main__.py +++ b/gitlab/__main__.py @@ -1,4 +1,5 @@ import gitlab.cli -__name__ == "__main__" and gitlab.cli.main() +if __name__ == "__main__": + gitlab.cli.main() |
