Skip to content

Commit

Permalink
Python Wrapper: Fix commit message parameter (#7117)
Browse files Browse the repository at this point in the history
  • Loading branch information
N-o-Z authored Dec 6, 2023
1 parent cc79b6d commit ac7b193
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clients/python-wrapper/lakefs/branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def uncommitted(self, max_amount: Optional[int], after: Optional[str] = None, pr
**kwargs):
yield Change(**diff.dict())

def import_data(self, commit_message: Optional[str] = "", metadata: Optional[dict] = None) -> ImportManager:
def import_data(self, commit_message: str = "", metadata: Optional[dict] = None) -> ImportManager:
"""
Import data to lakeFS
Expand Down
2 changes: 1 addition & 1 deletion clients/python-wrapper/lakefs/import_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ImportManager:
commit_metadata: Optional[Dict]
sources: List[lakefs_sdk.ImportLocation]

def __init__(self, repository_id: str, branch_id: str, commit_message: Optional[str] = "",
def __init__(self, repository_id: str, branch_id: str, commit_message: str = "",
commit_metadata: Optional[Dict] = None, client: Optional[Client] = DEFAULT_CLIENT) -> None:
self._client = client
self._repo_id = repository_id
Expand Down

0 comments on commit ac7b193

Please sign in to comment.