Skip to content

Commit a5f87ae

Browse files
committed
rename l_function method name
fixes E743
1 parent be0e410 commit a5f87ae

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ build-backend = "mesonpy"
4141

4242
[tool.cython-lint]
4343
max-line-length = 120
44-
ignore = ['E128','E129','E202','E221','E222','E261','E262','E265','E501','E731','E741','E743']
44+
ignore = ['E128','E129','E202','E221','E222','E261','E262','E265','E501','E731','E741']
4545
exclude = 'src/flint/flintlib/.*'
4646

4747
[tool.spin]

src/flint/types/dirichlet.pyx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ cdef class dirichlet_char(object):
169169
else:
170170
return fmpz(v)
171171

172-
def l(self, s):
172+
def l_function(self, s):
173173
"""
174174
Evaluates the Dirichlet L-function of this character at the given
175175
complex number s.
@@ -189,6 +189,9 @@ cdef class dirichlet_char(object):
189189
acb_dirichlet_l((<acb>v).val, (<acb>s).val, self.G.val, self.val, getprec())
190190
return v
191191

192+
# For backwards compatibility we allow self.l(s) see Issue #210
193+
l = l_function # no-cython-lint
194+
192195
def hardy_z(self, s):
193196
"""
194197
Evaluates the Hardy Z-function of this character at the given

0 commit comments

Comments
 (0)