Skip to content

Commit

Permalink
type
Browse files Browse the repository at this point in the history
  • Loading branch information
kramstrom committed Jul 12, 2024
1 parent 4bc02b6 commit 8a99dad
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modal/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,14 +550,12 @@ class _VolumeUploadContextManager:
progress_cb: Callable
_upload_generators: List[Generator[Callable[[], FileUploadSpec], None, None]]

def __init__(
self, volume_id: str, client: _Client, progress_cb: Callable = (lambda *_, **__: None), force: bool = False
):
def __init__(self, volume_id: str, client: _Client, progress_cb: Callable = None, force: bool = False):
"""mdmd:hidden"""
self._volume_id = volume_id
self._client = client
self._upload_generators = []
self._progress_cb = progress_cb
self._progress_cb = progress_cb or (lambda *_, **__: None)
self._force = force

async def __aenter__(self):
Expand Down

0 comments on commit 8a99dad

Please sign in to comment.