Files
@ 88ca10c9e31a
Branch filter:
Location: light9/stubs/PIL/ImageFont.pyi - annotation
88ca10c9e31a
1.3 KiB
text/plain
hack up stubs to pass mypy. they're very weak right now
Ignore-this: f4c854346bc206725a1065079d8d158f
Ignore-this: f4c854346bc206725a1065079d8d158f
3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d 3b2255e3576d | # Stubs for PIL.ImageFont (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, Optional
class _imagingft_not_installed:
def __getattr__(self, id: Any) -> None: ...
class ImageFont: ...
class FreeTypeFont:
path: Any = ...
size: Any = ...
index: Any = ...
encoding: Any = ...
font: Any = ...
font_bytes: Any = ...
def __init__(self, font: Optional[Any] = ..., size: int = ..., index: int = ..., encoding: str = ...) -> None: ...
def getname(self): ...
def getmetrics(self): ...
def getsize(self, text: Any): ...
def getoffset(self, text: Any): ...
def getmask(self, text: Any, mode: str = ...): ...
def getmask2(self, text: Any, mode: str = ..., fill: Any = ...): ...
def font_variant(self, font: Optional[Any] = ..., size: Optional[Any] = ..., index: Optional[Any] = ..., encoding: Optional[Any] = ...): ...
class TransposedFont:
font: Any = ...
orientation: Any = ...
def __init__(self, font: Any, orientation: Optional[Any] = ...) -> None: ...
def getsize(self, text: Any): ...
def getmask(self, text: Any, mode: str = ...): ...
def load(filename: Any): ...
def truetype(font: Optional[Any] = ..., size: int = ..., index: int = ..., encoding: str = ...): ...
def load_path(filename: Any): ...
def load_default(): ...
|