Skip to content

Commit

Permalink
add whitespace, pacify flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
0xabu committed Sep 3, 2021
1 parent 893b9fb commit 164f816
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pdfminer/pdftypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,16 @@

if sys.version_info >= (3, 8):
from typing import Protocol

class DecipherCallable(Protocol):
"""Fully typed a decipher callback, with optional parameter."""
def __call__(self, objid: int, genno: int, data: bytes,
attrs: Optional[Dict[str, Any]] = None) -> bytes:
attrs: Optional[Dict[str, Any]] = None) -> bytes:
raise NotImplementedError

else: # Fallback for older Python
from typing import Callable

DecipherCallable = Callable[..., bytes]


Expand Down

0 comments on commit 164f816

Please sign in to comment.