aboutsummaryrefslogtreecommitdiff
path: root/pyecsca/ec
diff options
context:
space:
mode:
authorJ08nY2025-09-02 14:27:50 +0200
committerJ08nY2025-09-02 14:27:50 +0200
commitb8466bf34a14ee701d5f8dd8d6f437dc28b88c3a (patch)
treede7695dc56b39e9ee545084258539dde3203c5bc /pyecsca/ec
parent737307aa7ebd71122ed1a54193d8a9f8b392fc4a (diff)
downloadpyecsca-b8466bf34a14ee701d5f8dd8d6f437dc28b88c3a.tar.gz
pyecsca-b8466bf34a14ee701d5f8dd8d6f437dc28b88c3a.tar.zst
pyecsca-b8466bf34a14ee701d5f8dd8d6f437dc28b88c3a.zip
Diffstat (limited to 'pyecsca/ec')
-rw-r--r--pyecsca/ec/mod/flint.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pyecsca/ec/mod/flint.py b/pyecsca/ec/mod/flint.py
index 890d727..becfeea 100644
--- a/pyecsca/ec/mod/flint.py
+++ b/pyecsca/ec/mod/flint.py
@@ -21,9 +21,9 @@ try:
if (int(_major), int(_minor)) >= (0, 5):
has_flint = True
else:
- flint = None
+ flint = None # type: ignore
except ImportError:
- flint = None
+ flint = None # type: ignore
if has_flint:
@@ -32,7 +32,7 @@ if has_flint:
def _fmpz_ctx(n: Union[int, flint.fmpz_mod_ctx]) -> flint.fmpz_mod_ctx:
if type(n) is flint.fmpz_mod_ctx:
return n
- return flint.fmpz_mod_ctx(n)
+ return flint.fmpz_mod_ctx(n) # type: ignore
@lru_cache
def _fmpz_is_prime(x: flint.fmpz) -> bool:
@@ -67,8 +67,8 @@ if has_flint:
self._ctx = _fmpz_ctx(n)
self.x = self._ctx(x)
else:
- self._ctx = n
- self.x = x
+ self._ctx = n # type: ignore
+ self.x = x # type: ignore
@property
def n(self) -> flint.fmpz: