Skip to content

Commit d4af2c3

Browse files
python3-devbosd
authored andcommitted
CHANGES
======= utils.py - Fix import-error from pdfminer - Add type-annotations - Code optimisations random_string(), remove_extra(), text_strip(), compute_whitespace() - Improve code-readability. - Add more unit-test cases.
1 parent c2f94d2 commit d4af2c3

File tree

6 files changed

+2309
-271
lines changed

6 files changed

+2309
-271
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ dmypy.json
5454

5555
# OSX Files
5656
.DS_Store
57+
58+
.venv

camelot/parsers/lattice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,10 @@ def scale_areas(areas):
291291
)
292292

293293
for bbox, parse in self.table_bbox_parses.items():
294-
joints = parse["joints"]
294+
joints: list[tuple[float, float]] = parse["joints"]
295295

296296
# Merge x coordinates that are close together
297-
line_tol = self.line_tol
297+
line_tol: int = self.line_tol
298298
# Sort the joints, make them a list of lists (instead of sets)
299299
joints_normalized = list(
300300
map(lambda x: list(x), sorted(joints, key=lambda j: -j[0]))

0 commit comments

Comments
 (0)