Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jing Wang committed Apr 9, 2023
1 parent 0d5d600 commit afcc88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyhdfs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ def copy_to_local(
Takes all arguments that :py:meth:`open` takes.
"""
with self.open(src, **kwargs) as fsrc:
with open(localdest, "wb") as fdst: # type: IO[bytes]
with open(localdest, "wb") as fdst:
shutil.copyfileobj(fsrc, fdst)

def get_active_namenode(self, max_staleness: Optional[float] = None) -> str:
Expand Down

0 comments on commit afcc88f

Please sign in to comment.