Skip to content

Commit

Permalink
Fixed incorrect interface for Matrix constructor
Browse files Browse the repository at this point in the history
The cairo.Matrix constructor interface defined in __init__.pyi was
defined incorrectly. This was causing PyCharm to complain about
unexpected arguments when calling the full Matrix constructor
explicitly, despite the code working as expected (and as
documented).
  • Loading branch information
aaronhendry committed Jun 7, 2022
1 parent 06bc481 commit e96bd1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cairo/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ class Matrix:
https://www.cairographics.org/cookbook/matrix_transform/
"""

def __init__(self, xx: float = 1.0, yx: float = 0.0, yy: float = 1.0, x0: float = 0.0, y0: float = 0.0) -> None:
def __init__(self, xx: float = 1.0, yx: float = 0.0, xy: float = 0.0, yy: float = 1.0, x0: float = 0.0, y0: float = 0.0) -> None:
"""
:param xx: xx component of the affine transformation
:param yx: yx component of the affine transformation
Expand Down

0 comments on commit e96bd1c

Please sign in to comment.