@@ -298,7 +298,7 @@ def createBlankPage(
298298 deprecate_with_replacement ("createBlankPage" , "create_blank_page" )
299299 return PageObject .create_blank_page (pdf , width , height )
300300
301- def rotate (self , angle : float ) -> "PageObject" :
301+ def rotate (self , angle : int ) -> "PageObject" :
302302 """
303303 Rotate a page clockwise by increments of 90 degrees.
304304
@@ -314,11 +314,11 @@ def rotate(self, angle: float) -> "PageObject":
314314 self [NameObject (PG .ROTATE )] = NumberObject (current_angle + angle )
315315 return self
316316
317- def rotate_clockwise (self , angle : float ) -> "PageObject" : # pragma: no cover
317+ def rotate_clockwise (self , angle : int ) -> "PageObject" : # pragma: no cover
318318 deprecate_with_replacement ("rotate_clockwise" , "rotate" )
319319 return self .rotate (angle )
320320
321- def rotateClockwise (self , angle : float ) -> "PageObject" : # pragma: no cover
321+ def rotateClockwise (self , angle : int ) -> "PageObject" : # pragma: no cover
322322 """
323323 .. deprecated:: 1.28.0
324324
@@ -327,7 +327,7 @@ def rotateClockwise(self, angle: float) -> "PageObject": # pragma: no cover
327327 deprecate_with_replacement ("rotateClockwise" , "rotate" )
328328 return self .rotate (angle )
329329
330- def rotateCounterClockwise (self , angle : float ) -> "PageObject" : # pragma: no cover
330+ def rotateCounterClockwise (self , angle : int ) -> "PageObject" : # pragma: no cover
331331 """
332332 .. deprecated:: 1.28.0
333333
0 commit comments