mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Use Pillow types from typeshed.
This commit is contained in:
parent
9de08dc83f
commit
a19a0b6789
@ -93,7 +93,7 @@ class KneeboardPageWriter:
|
|||||||
def text(
|
def text(
|
||||||
self,
|
self,
|
||||||
text: str,
|
text: str,
|
||||||
font: Optional[ImageFont.ImageFont] = None,
|
font: Optional[ImageFont.FreeTypeFont] = None,
|
||||||
fill: Tuple[int, int, int] = (0, 0, 0),
|
fill: Tuple[int, int, int] = (0, 0, 0),
|
||||||
) -> None:
|
) -> None:
|
||||||
if font is None:
|
if font is None:
|
||||||
|
|||||||
6
mypy.ini
6
mypy.ini
@ -19,11 +19,5 @@ warn_unused_ignores = True
|
|||||||
[mypy-faker.*]
|
[mypy-faker.*]
|
||||||
ignore_missing_imports = True
|
ignore_missing_imports = True
|
||||||
|
|
||||||
[mypy-PIL.*]
|
|
||||||
ignore_missing_imports = True
|
|
||||||
|
|
||||||
[mypy-winreg.*]
|
|
||||||
ignore_missing_imports = True
|
|
||||||
|
|
||||||
[mypy-shapely.*]
|
[mypy-shapely.*]
|
||||||
ignore_missing_imports = True
|
ignore_missing_imports = True
|
||||||
@ -36,5 +36,6 @@ tabulate==0.8.7
|
|||||||
text-unidecode==1.3
|
text-unidecode==1.3
|
||||||
toml==0.10.2
|
toml==0.10.2
|
||||||
typed-ast==1.4.2
|
typed-ast==1.4.2
|
||||||
|
types-Pillow==8.3.1
|
||||||
typing-extensions==3.7.4.3
|
typing-extensions==3.7.4.3
|
||||||
virtualenv==20.4.2
|
virtualenv==20.4.2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user