From 9fc83b838a04f7d8838c7b481e609c7c8a3883e0 Mon Sep 17 00:00:00 2001 From: Alexander Golodkov Date: Thu, 5 Sep 2024 12:48:58 +0300 Subject: [PATCH] style fix --- dedocutils/data_structures/bbox.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dedocutils/data_structures/bbox.py b/dedocutils/data_structures/bbox.py index 32befaa..103fd99 100644 --- a/dedocutils/data_structures/bbox.py +++ b/dedocutils/data_structures/bbox.py @@ -61,10 +61,7 @@ def shift_bbox(bbox: "BBox", shift_x: int, shift_y: int) -> "BBox": :param shift_x: x coordinate offset :param shift_y: y coordinate offset """ - return BBox(x_top_left=bbox.x_top_left + shift_x, - y_top_left=bbox.y_top_left + shift_y, - width=bbox.width, - height=bbox.height) + return BBox(x_top_left=bbox.x_top_left + shift_x, y_top_left=bbox.y_top_left + shift_y, width=bbox.width, height=bbox.height) def rotate_coordinates(self, angle_rotate: float, image_shape: Tuple[int]) -> None: xb, yb = self.x_top_left, self.y_top_left