Use Pillow types from typeshed.

This commit is contained in:
Dan Albert 2021-07-11 13:53:58 -07:00
parent 9de08dc83f
commit a19a0b6789
3 changed files with 2 additions and 7 deletions

View File

@ -93,7 +93,7 @@ class KneeboardPageWriter:
def text(
self,
text: str,
font: Optional[ImageFont.ImageFont] = None,
font: Optional[ImageFont.FreeTypeFont] = None,
fill: Tuple[int, int, int] = (0, 0, 0),
) -> None:
if font is None:

View File

@ -19,11 +19,5 @@ warn_unused_ignores = True
[mypy-faker.*]
ignore_missing_imports = True
[mypy-PIL.*]
ignore_missing_imports = True
[mypy-winreg.*]
ignore_missing_imports = True
[mypy-shapely.*]
ignore_missing_imports = True

View File

@ -36,5 +36,6 @@ tabulate==0.8.7
text-unidecode==1.3
toml==0.10.2
typed-ast==1.4.2
types-Pillow==8.3.1
typing-extensions==3.7.4.3
virtualenv==20.4.2