From 34203eeae1e0df4b06a5ad997327014cf0fba5e6 Mon Sep 17 00:00:00 2001 From: YishiMichael Date: Tue, 17 Oct 2023 03:21:40 -0400 Subject: [PATCH] typing: add enum variables --- python/pyclipr/__init__.pyi | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/python/pyclipr/__init__.pyi b/python/pyclipr/__init__.pyi index cee819f..bb8d7d9 100644 --- a/python/pyclipr/__init__.pyi +++ b/python/pyclipr/__init__.pyi @@ -4,32 +4,55 @@ import numpy as np import numpy.typing as npt -class PathType: ... +class PathType: + Subject: PathType = ... + Clip: PathType = ... + Subject: PathType = ... Clip: PathType = ... -class ClipType: ... +class ClipType: + Union: ClipType = ... + Difference: ClipType = ... + Intersection: ClipType = ... + Xor: ClipType = ... + Union: ClipType = ... Difference: ClipType = ... Intersection: ClipType = ... Xor: ClipType = ... -class FillType: ... +class FillType: + EvenOdd: FillType = ... + NonZero: FillType = ... + Positive: FillType = ... + Negative: FillType = ... + EvenOdd: FillType = ... NonZero: FillType = ... Positive: FillType = ... Negative: FillType = ... -class JoinType: ... +class JoinType: + Square: JoinType = ... + Round: JoinType = ... + Miter: JoinType = ... + Square: JoinType = ... # FIXME Round: JoinType = ... # FIXME Miter: JoinType = ... -class EndType: ... +class EndType: + Square: EndType = ... + Butt: EndType = ... + Joined: EndType = ... + Polygon: EndType = ... + Round: EndType = ... + Square: EndType = ... # FIXME Butt: EndType = ... Joined: EndType = ...