From 164f81652f1788e74837466f0ab593e94079bc0f Mon Sep 17 00:00:00 2001 From: Andrew Baumann Date: Fri, 3 Sep 2021 09:45:09 -0700 Subject: [PATCH] add whitespace, pacify flake8 --- pdfminer/pdftypes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pdfminer/pdftypes.py b/pdfminer/pdftypes.py index 33a52fc9..738bff25 100644 --- a/pdfminer/pdftypes.py +++ b/pdfminer/pdftypes.py @@ -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]