Skip to content

Commit c2516e2

Browse files
committed
Use Literal
1 parent 17e1eee commit c2516e2

File tree

1 file changed

+2
-2
lines changed
  • stubs/reportlab/reportlab/graphics/charts

1 file changed

+2
-2
lines changed

stubs/reportlab/reportlab/graphics/charts/utils.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ class FillPairedData(list[Incomplete]):
6767
other: Incomplete
6868
def __init__(self, v, other: int = 0) -> None: ...
6969

70-
def angle2dir(angle: float) -> str: ...
71-
def angle2corner(angle: float) -> str: ...
70+
def angle2dir(angle: float) -> Literal["n", "ne", "e", "se", "s", "sw", "w", "nw", "c"]: ...
71+
def angle2corner(angle: float) -> Literal["n", "ne", "e", "se", "s", "sw", "w", "nw", "c"]: ...
7272
def boxCornerCoords(bb: Sequence[float], cn: Literal["n", "ne", "e", "se", "s", "sw", "w", "nw", "c"]) -> tuple[float, float]: ...

0 commit comments

Comments
 (0)