Improve docs, error messages, and type annotations

This commit is contained in:
Jan Petykiewicz 2020-09-26 17:33:46 -07:00
commit c6684936cf
5 changed files with 14 additions and 18 deletions

View file

@ -246,7 +246,7 @@ class Shape(PositionableImpl, LayerableImpl, DoseableImpl, Rotatable, Mirrorable
List of `Polygon` objects with grid-aligned edges.
"""
from . import Polygon
import skimage.measure
import skimage.measure # type: ignore
import float_raster
grid_x = numpy.unique(grid_x)

View file

@ -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.