Skip to content

Commit

Permalink
revert drawing.py, after black 22.1 made up its mind
Browse files Browse the repository at this point in the history
  • Loading branch information
gmischler committed Mar 6, 2022
1 parent ce2fc7c commit 3a72364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fpdf/drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def mag(self):
The scalar result of the distance computation.
"""

return (self.x ** 2 + self.y ** 2) ** 0.5
return (self.x**2 + self.y**2) ** 0.5

@force_document
def __add__(self, other):
Expand Down Expand Up @@ -2660,7 +2660,7 @@ def _approximate_arc(self, last_item):
lam_da = (prime.x / radii.x) ** 2 + (prime.y / radii.y) ** 2

if lam_da > 1:
radii = Point(x=(lam_da ** 0.5) * radii.x, y=(lam_da ** 0.5) * radii.y)
radii = Point(x=(lam_da**0.5) * radii.x, y=(lam_da**0.5) * radii.y)

sign = (self.large != self.sweep) - (self.large == self.sweep)
rxry2 = (radii.x * radii.y) ** 2
Expand Down

0 comments on commit 3a72364

Please sign in to comment.