summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-08-01 10:12:03 +0200
committerGitHub <noreply@github.com>2022-08-01 10:12:03 +0200
commit1136b17f4e5f36c66c3a67292e508b43ded9ca3e (patch)
tree362a292fe396e16ca688d3cda3dd8aa51c7b50fa /gitlab/v4/objects
parent6cedbc8f4808f795332d0d4642b7469681a4bf48 (diff)
parent24d17b43da16dd11ab37b2cee561d9392c90f32e (diff)
downloadgitlab-1136b17f4e5f36c66c3a67292e508b43ded9ca3e.tar.gz
Merge pull request #2211 from python-gitlab/jlvillal/mypy_step_step
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,