Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Merge requests
!2307
Introduce pyupgrade
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Introduce pyupgrade
introduce-pyupgrade
into
master
Overview
0
Commits
12
Pipelines
0
Changes
43
Merged
Yoann Schneider
requested to merge
introduce-pyupgrade
into
master
10 months ago
Overview
0
Commits
12
Pipelines
0
Changes
43
Expand
Closes
#1742 (closed)
Introducing
pyupgrade
.
Again, I've made one commit per rule.
Edited
10 months ago
by
Yoann Schneider
0
0
Merge request reports
Compare
master
version 2
5eca0957
10 months ago
version 1
cf6370fe
10 months ago
master (base)
and
latest version
latest version
59aef75d
12 commits,
10 months ago
version 2
5eca0957
12 commits,
10 months ago
version 1
cf6370fe
12 commits,
10 months ago
43 files
+
110
−
118
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
43
Search (e.g. *.vue) (Ctrl+P)
arkindex/documents/management/commands/move_lines_to_parent.py
+
6
−
3
Options
@@ -6,10 +6,13 @@ from django.core.management.base import BaseCommand, CommandError
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