use cast() to clarify some type checker complaints
This commit is contained in:
parent
93471a221c
commit
fcb470a02c
2 changed files with 2 additions and 2 deletions
|
|
@ -233,7 +233,7 @@ class Arc(Shape):
|
|||
r0, r1 = self.radii
|
||||
|
||||
# Convert from polar angle to ellipse parameter (for [rx*cos(t), ry*sin(t)] representation)
|
||||
a_ranges = self._angles_to_parameters()
|
||||
a_ranges = cast(tuple[tuple[float, float], tuple[float, float]], self._angles_to_parameters())
|
||||
|
||||
# Approximate perimeter via numerical integration
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue