1- from ._enums import CapStyle , JoinStyle
1+ from typing import Literal
2+
23from .path import Path
34from .transforms import Affine2D , Transform
45
56from numpy .typing import ArrayLike
6- from .typing import FillStyleType
7+ from .typing import CapStyleType , FillStyleType , JoinStyleType
78
89TICKLEFT : int
910TICKRIGHT : int
@@ -28,20 +29,18 @@ class MarkerStyle:
2829 marker : str | ArrayLike | Path | MarkerStyle | None ,
2930 fillstyle : FillStyleType | None = ...,
3031 transform : Transform | None = ...,
31- capstyle : CapStyle | None = ...,
32- joinstyle : JoinStyle | None = ...,
32+ capstyle : CapStyleType | None = ...,
33+ joinstyle : JoinStyleType | None = ...,
3334 ) -> None : ...
3435 def __bool__ (self ) -> bool : ...
3536 def is_filled (self ) -> bool : ...
36- def get_fillstyle (
37- self ,
38- ) -> FillStyleType : ...
39- def get_joinstyle (self ) -> JoinStyle : ...
40- def get_capstyle (self ) -> CapStyle : ...
41- def get_marker (self ) -> str | ArrayLike | Path | MarkerStyle | None : ...
37+ def get_fillstyle (self ) -> FillStyleType : ...
38+ def get_joinstyle (self ) -> Literal ["miter" , "round" , "bevel" ]: ...
39+ def get_capstyle (self ) -> Literal ["butt" , "projecting" , "round" ]: ...
40+ def get_marker (self ) -> str | ArrayLike | Path | None : ...
4241 def get_path (self ) -> Path : ...
4342 def get_transform (self ) -> Transform : ...
44- def get_alt_path (self ) -> Path : ...
43+ def get_alt_path (self ) -> Path | None : ...
4544 def get_alt_transform (self ) -> Transform : ...
4645 def get_snap_threshold (self ) -> float | None : ...
4746 def get_user_transform (self ) -> Transform | None : ...
0 commit comments