diff --git a/gen/kneeboard.py b/gen/kneeboard.py index 35c22799..110dff55 100644 --- a/gen/kneeboard.py +++ b/gen/kneeboard.py @@ -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: diff --git a/mypy.ini b/mypy.ini index 8e8d05ca..2efd6b99 100644 --- a/mypy.ini +++ b/mypy.ini @@ -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 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index c43966a1..fe4a96f7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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