Skip to content

Commit 18fff06

Browse files
committed
mpi: Fixup imag is a property
was wrongly implemented as a method
1 parent 6a6d388 commit 18fff06

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[next]
22

33
* pk: Remove obsoleted to_PEM and to_DER functions.
4+
* mpi: Fixup `imag` as property instead of method.
45
* ci: Update wheels to mbedtls 2.28.8
56

67
[2.9.2] - 2024-02-18

src/mbedtls/mpi.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class MPI(numbers.Integral):
6363
def __ge__(self, __other: _Integral) -> bool: ...
6464
def __complex__(self) -> complex: ...
6565
def __real__(self) -> MPI: ...
66+
@property
6667
def imag(self) -> Literal[0]: ...
6768
def conjugate(self) -> MPI: ...
6869
def __int__(self) -> int: ...

src/mbedtls/mpi.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ cdef class MPI:
279279
def real(self):
280280
return self
281281

282+
@property
282283
def imag(self):
283284
return 0
284285

0 commit comments

Comments
 (0)