summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gitlab/v4/objects/sidekiq.py16
-rw-r--r--pyproject.toml1
2 files changed, 12 insertions, 5 deletions
diff --git a/gitlab/v4/objects/sidekiq.py b/gitlab/v4/objects/sidekiq.py
index dc1094a..9e00fe4 100644
--- a/gitlab/v4/objects/sidekiq.py
+++ b/gitlab/v4/objects/sidekiq.py
@@ -1,3 +1,7 @@
+from typing import Any, Dict, Union
+
+import requests
+
from gitlab import cli
from gitlab import exceptions as exc
from gitlab.base import RESTManager
@@ -16,7 +20,7 @@ class SidekiqManager(RESTManager):
@cli.register_custom_action("SidekiqManager")
@exc.on_http_error(exc.GitlabGetError)
- def queue_metrics(self, **kwargs):
+ def queue_metrics(self, **kwargs: Any) -> Union[Dict[str, Any], requests.Response]:
"""Return the registered queues information.
Args:
@@ -33,7 +37,9 @@ class SidekiqManager(RESTManager):
@cli.register_custom_action("SidekiqManager")
@exc.on_http_error(exc.GitlabGetError)
- def process_metrics(self, **kwargs):
+ def process_metrics(
+ self, **kwargs: Any
+ ) -> Union[Dict[str, Any], requests.Response]:
"""Return the registered sidekiq workers.
Args:
@@ -50,7 +56,7 @@ class SidekiqManager(RESTManager):
@cli.register_custom_action("SidekiqManager")
@exc.on_http_error(exc.GitlabGetError)
- def job_stats(self, **kwargs):
+ def job_stats(self, **kwargs: Any) -> Union[Dict[str, Any], requests.Response]:
"""Return statistics about the jobs performed.
Args:
@@ -67,7 +73,9 @@ class SidekiqManager(RESTManager):
@cli.register_custom_action("SidekiqManager")
@exc.on_http_error(exc.GitlabGetError)
- def compound_metrics(self, **kwargs):
+ def compound_metrics(
+ self, **kwargs: Any
+ ) -> Union[Dict[str, Any], requests.Response]:
"""Return all available metrics and statistics.
Args:
diff --git a/pyproject.toml b/pyproject.toml
index d9cff74..f321b33 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -14,7 +14,6 @@ module = [
"docs.ext.*",
"gitlab.v4.objects.files",
"gitlab.v4.objects.labels",
- "gitlab.v4.objects.sidekiq",
"tests.functional.*",
"tests.functional.api.*",
"tests.meta.*",