Skip to content

Commit

Permalink
Merge branch 'feat/py3.12'
Browse files Browse the repository at this point in the history
  • Loading branch information
J08nY committed Jul 15, 2024
2 parents 72c5f70 + 3081d79 commit a66332f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
mod: ["python", "gmp", "flint"]
env:
PYTHON: ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
mod: ["python", "gmp", "flint"]
env:
PYTHON: ${{ matrix.python-version }}
Expand Down
6 changes: 3 additions & 3 deletions pyecsca/ec/mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class Mod:
.. note::
This class dispatches to one of :py:class:`RawMod`, :py:class:`GMPMod` or :py:class:`FlintMod`
based on what packages are installed and what implementation is configured (see
:py:module:`pyecsca.misc.cfg`).
:py:mod:`pyecsca.misc.cfg`).
Has all the usual special methods that upcast integers automatically:
Expand All @@ -194,7 +194,7 @@ class Mod:
False
>>> (a**2).is_residue()
True
>>> (a**2).sqrt() == a
>>> (a**2).sqrt() in (a, -a)
True
"""

Expand Down Expand Up @@ -781,7 +781,7 @@ def method(self, other):

@public
class FlintMod(Mod):
"""An element x of ℤₙ. Implemented by GMP."""
"""An element x of ℤₙ. Implemented by flint."""

x: flint.fmpz_mod
_ctx: flint.fmpz_mod_ctx
Expand Down

0 comments on commit a66332f

Please sign in to comment.