Skip to content

Commit f933cd0

Browse files
committed
fix: use overwrite as string in import project method
This possibly is temporary solution because httpx raises TypeError when tries to init DataField with bool value
1 parent 1563b7d commit f933cd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/v4/objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4830,7 +4830,7 @@ async def import_project(
48304830
dict: A representation of the import status.
48314831
"""
48324832
files = {"file": ("file.tar.gz", file)}
4833-
data = {"path": path, "overwrite": overwrite}
4833+
data = {"path": path, "overwrite": "true" if overwrite else "false"}
48344834
if override_params:
48354835
for k, v in override_params.items():
48364836
data["override_params[%s]" % k] = v

0 commit comments

Comments
 (0)