Skip to content

Commit

Permalink
Remove unused ignore.
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterhector committed Mar 26, 2021
1 parent 361d609 commit 3e17daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion texar/torch/data/data/text_data_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def __getattr__(self, item):
def _open_file(self, path: str) -> IO[str]:
if self._compression_type == 'zlib':
f: IO[str] = io.TextIOWrapper(
self._ZlibWrapper(open(path, 'rb')), # type: ignore
self._ZlibWrapper(open(path, 'rb')),
encoding=self._encoding)
elif self._compression_type == 'gzip':
import gzip
Expand Down

0 comments on commit 3e17daa

Please sign in to comment.