Improve docs, error messages, and type annotations
This commit is contained in:
parent
84f811e9d1
commit
c6684936cf
5 changed files with 14 additions and 18 deletions
|
|
@ -170,8 +170,8 @@ def get_char_as_polygons(font_path: str,
|
|||
char: str,
|
||||
resolution: float = 48*64,
|
||||
) -> Tuple[List[List[List[float]]], float]:
|
||||
from freetype import Face
|
||||
from matplotlib.path import Path
|
||||
from freetype import Face # type: ignore
|
||||
from matplotlib.path import Path # type: ignore
|
||||
|
||||
"""
|
||||
Get a list of polygons representing a single character.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue