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