Skip to content

Commit

Permalink
sagemathgh-36822: Fix linter failure in 10.3.beta0
Browse files Browse the repository at this point in the history
    
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes sagemath#1234" use "Introduce new method to
calculate 1+1"
-->
<!-- Describe your changes here in detail -->

<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixes sagemath#12345". -->
<!-- If your change requires a documentation PR, please link it
appropriately. -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
<!-- Feel free to remove irrelevant items. -->

- [x] The title is concise, informative, and self-explanatory.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on
- sagemath#12345: short description why this is a dependency
- sagemath#34567: ...
-->

<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
    
URL: sagemath#36822
Reported by: Matthias Köppe
Reviewer(s): Frédéric Chapoton
  • Loading branch information
Release Manager committed Dec 10, 2023
2 parents 6b5bda0 + 92ad155 commit 417ae96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sage/schemes/elliptic_curves/mod_poly.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
_cache_bound = 100
_cache = dict()


def classical_modular_polynomial(l, j=None):
r"""
Return the classical modular polynomial `\Phi_\ell`, either as a
Expand Down Expand Up @@ -143,6 +144,7 @@ def classical_modular_polynomial(l, j=None):
# and simply evaluating it.
return classical_modular_polynomial(l)(j, Y)


def _set_cache_bound(bnd):
r"""
Internal helper function to allow setting the caching cutoff for
Expand All @@ -164,4 +166,5 @@ def _set_cache_bound(bnd):
global _cache_bound
_cache_bound = bnd


classical_modular_polynomial.set_cache_bound = _set_cache_bound

0 comments on commit 417ae96

Please sign in to comment.