Skip to content

Commit 9208210

Browse files
committed
fix E731
1 parent b32134c commit 9208210

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ build-backend = "mesonpy"
4242
[tool.cython-lint]
4343
# We currently ignore
4444
# E129 visually indented line with same indent as next logical line
45+
# E501 line too long (128 > 120 characters)
4546
max-line-length = 120
46-
ignore = ['E129','E501','E731','E741','E743']
47+
ignore = ['E129','E501','E741','E743']
4748
exclude = 'src/flint/flintlib/.*'
4849

4950
[tool.spin]

src/flint/functions/showgood.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def good(func, slong prec=0, slong maxprec=0, slong dps=0,
8282
maxprec = 10 * prec + 100
8383

8484
if metric == "abssum":
85-
metric = lambda L: sum(abs(c) for c in L)
85+
def metric(L): return sum(abs(c) for c in L)
8686

8787
# for printing
8888
if dps == 0:

0 commit comments

Comments
 (0)