diff options
| author | J08nY | 2025-09-02 14:27:50 +0200 |
|---|---|---|
| committer | J08nY | 2025-09-02 14:27:50 +0200 |
| commit | b8466bf34a14ee701d5f8dd8d6f437dc28b88c3a (patch) | |
| tree | de7695dc56b39e9ee545084258539dde3203c5bc /pyecsca | |
| parent | 737307aa7ebd71122ed1a54193d8a9f8b392fc4a (diff) | |
| download | pyecsca-b8466bf34a14ee701d5f8dd8d6f437dc28b88c3a.tar.gz pyecsca-b8466bf34a14ee701d5f8dd8d6f437dc28b88c3a.tar.zst pyecsca-b8466bf34a14ee701d5f8dd8d6f437dc28b88c3a.zip | |
Diffstat (limited to 'pyecsca')
| -rw-r--r-- | pyecsca/ec/mod/flint.py | 10 |
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: |
