pytype confused by gzip.open file API
@@ -3,8 +3,8 @@ import io
def gzip_reader(gzip_file):
- return io.TextIOWrapper(gzip.open(gzip_file, 'r'), newline='')
+ return io.TextIOWrapper(gzip.open(gzip_file, 'r'), newline='') # pytype: disable=wrong-arg-types
def gzip_writer(gzip_file):
- return io.TextIOWrapper(gzip.open(gzip_file, 'w'), newline='', write_through=True)
+ return io.TextIOWrapper(gzip.open(gzip_file, 'w'), newline='', write_through=True) # pytype: disable=wrong-arg-types
