Skip to content

Commit 33fbc14

Browse files
AdrianDCJohnVillalovos
authored andcommitted
fix(projects): fix 'import_project' file argument type for typings
Signed-off-by: Adrian DC <radian.dc@gmail.com>
1 parent 12d195a commit 33fbc14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitlab/v4/objects/projects.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
https://docs.gitlab.com/ee/api/projects.html
44
"""
55

6+
import io
67
from typing import (
78
Any,
89
Callable,
@@ -786,7 +787,7 @@ def get(self, id: Union[str, int], lazy: bool = False, **kwargs: Any) -> Project
786787
@exc.on_http_error(exc.GitlabImportError)
787788
def import_project(
788789
self,
789-
file: str,
790+
file: io.BufferedReader,
790791
path: str,
791792
name: Optional[str] = None,
792793
namespace: Optional[str] = None,

0 commit comments

Comments
 (0)