Browse Source

chore: fix lint error

忘忧北萱草 1 year ago
parent
commit
d5eed6c33d
2 changed files with 2 additions and 2 deletions
  1. 2 1
      pdf2zh/doclayout.py
  2. 0 1
      pdf2zh/pdf2zh.py

+ 2 - 1
pdf2zh/doclayout.py

@@ -173,7 +173,8 @@ class OnnxModel(DocLayoutModel):
         specified in (img1_shape) to the shape of a different image (img0_shape).
 
         Args:
-            img1_shape (tuple): The shape of the image that the bounding boxes are for, in the format of (height, width).
+            img1_shape (tuple): The shape of the image that the bounding boxes are for,
+                in the format of (height, width).
             boxes (torch.Tensor): the bounding boxes of the objects in the image, in the format of (x1, y1, x2, y2)
             img0_shape (tuple): the shape of the target image, in the format of (height, width).
 

+ 0 - 1
pdf2zh/pdf2zh.py

@@ -14,7 +14,6 @@ from pathlib import Path
 from typing import TYPE_CHECKING, Any, Container, Iterable, List, Optional
 
 import pymupdf
-from pathlib import Path
 
 from pdf2zh import __version__
 from pdf2zh.pdfexceptions import PDFValueError