summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2022-01-14 00:49:59 +0100
committerJohn Villalovos <john@sodarock.com>2022-01-13 16:04:55 -0800
commit0788fe677128d8c25db1cc107fef860a5a3c2a42 (patch)
tree28dff9cd9bd4dee29368c6382b47cdd65a88e38a
parent259668ad8cb54348e4a41143a45f899a222d2d35 (diff)
downloadgitlab-0788fe677128d8c25db1cc107fef860a5a3c2a42.tar.gz
chore(projects): fix typing for transfer method
Co-authored-by: John Villalovos <john@sodarock.com>
-rw-r--r--gitlab/v4/objects/projects.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/v4/objects/projects.py b/gitlab/v4/objects/projects.py
index 6607f57..1a765d1 100644
--- a/gitlab/v4/objects/projects.py
+++ b/gitlab/v4/objects/projects.py
@@ -527,7 +527,7 @@ class Project(RefreshMixin, SaveMixin, ObjectDeleteMixin, RepositoryMixin, RESTO
@cli.register_custom_action("Project", ("to_namespace",))
@exc.on_http_error(exc.GitlabTransferProjectError)
- def transfer(self, to_namespace: str, **kwargs: Any) -> None:
+ def transfer(self, to_namespace: Union[int, str], **kwargs: Any) -> None:
"""Transfer a project to the given namespace ID
Args: