Skip to content

Commit

Permalink
Fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarlow83 committed Apr 14, 2023
1 parent 37d5c08 commit 10f4c48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ocrmypdf/_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,11 +900,11 @@ def copy_final(
log.debug('%s -> %s', input_file, output_file)
with input_file.open('rb') as input_stream:
if output_file == '-':
copyfileobj(input_stream, sys.stdout.buffer)
copyfileobj(input_stream, sys.stdout.buffer) # type: ignore[misc]
sys.stdout.flush()
elif hasattr(output_file, 'writable'):
output_stream = cast(BinaryIO, output_file)
copyfileobj(input_stream, output_stream)
copyfileobj(input_stream, output_stream) # type: ignore[misc]
with suppress(AttributeError):
output_stream.flush()
else:
Expand Down
2 changes: 1 addition & 1 deletion src/ocrmypdf/pluginspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
hookspec = pluggy.HookspecMarker('ocrmypdf')

# pylint: disable=unused-argument
# mypy:
# mypy: disable-error-code=empty-body


@hookspec(firstresult=True)
Expand Down

0 comments on commit 10f4c48

Please sign in to comment.