summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2022-08-01 00:29:18 -0700
committerJohn L. Villalovos <john@sodarock.com>2022-08-01 00:29:18 -0700
commit24d17b43da16dd11ab37b2cee561d9392c90f32e (patch)
tree2adacb59887c121231dd98cf04523c57674ba9c5 /gitlab/v4/objects
parent54dd4c3f857f82aa8781b0daf22fa2dd3c60c2c4 (diff)
downloadgitlab-24d17b43da16dd11ab37b2cee561d9392c90f32e.tar.gz
chore: enable mypy check `disallow_any_generics`
Diffstat (limited to 'gitlab/v4/objects')
-rw-r--r--gitlab/v4/objects/artifacts.py4
-rw-r--r--gitlab/v4/objects/packages.py2
-rw-r--r--gitlab/v4/objects/projects.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/gitlab/v4/objects/artifacts.py b/gitlab/v4/objects/artifacts.py
index b4a4c0e..f091867 100644
--- a/gitlab/v4/objects/artifacts.py
+++ b/gitlab/v4/objects/artifacts.py
@@ -75,7 +75,7 @@ class ProjectArtifactManager(RESTManager):
ref_name: str,
job: str,
streamed: bool = False,
- action: Optional[Callable] = None,
+ action: Optional[Callable[[bytes], None]] = None,
chunk_size: int = 1024,
*,
iterator: bool = False,
@@ -125,7 +125,7 @@ class ProjectArtifactManager(RESTManager):
artifact_path: str,
job: str,
streamed: bool = False,
- action: Optional[Callable] = None,
+ action: Optional[Callable[[bytes], None]] = None,
chunk_size: int = 1024,
*,
iterator: bool = False,
diff --git a/gitlab/v4/objects/packages.py b/gitlab/v4/objects/packages.py
index 50295e0..9ae2fd5 100644
--- a/gitlab/v4/objects/packages.py
+++ b/gitlab/v4/objects/packages.py
@@ -103,7 +103,7 @@ class GenericPackageManager(RESTManager):
package_version: str,
file_name: str,
streamed: bool = False,
- action: Optional[Callable] = None,
+ action: Optional[Callable[[bytes], None]] = None,
chunk_size: int = 1024,
*,
iterator: bool = False,
diff --git a/gitlab/v4/objects/projects.py b/gitlab/v4/objects/projects.py
index 00c0d7e..36e61f6 100644
--- a/gitlab/v4/objects/projects.py
+++ b/gitlab/v4/objects/projects.py
@@ -504,7 +504,7 @@ class Project(RefreshMixin, SaveMixin, ObjectDeleteMixin, RepositoryMixin, RESTO
self,
wiki: bool = False,
streamed: bool = False,
- action: Optional[Callable] = None,
+ action: Optional[Callable[[bytes], None]] = None,
chunk_size: int = 1024,
*,
iterator: bool = False,