Skip to content
Snippets Groups Projects

Introduce pyupgrade

Merged Yoann Schneider requested to merge introduce-pyupgrade into master
2 files
+ 7
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -7,9 +7,11 @@ from arkindex.documents.models import ElementType
from arkindex.project.argparse import CorpusArgument
# x and y of top left and bottom right points
BBox = NamedTuple(
"BBox", [("left", int), ("top", int), ("right", int), ("bottom", int)]
)
class BBox(NamedTuple):
left: int
top: int
right: int
bottom: int
def compute_polygon_area(polygon: BBox):
Loading