Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 33fbc14

Browse filesBrowse 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
Copy full SHA for 33fbc14

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎gitlab/v4/objects/projects.py‎

Copy file name to clipboardExpand all lines: gitlab/v4/objects/projects.py
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.