Skip to content

Commit 9ffa7ab

Browse files
committed
add attribute to stubs
1 parent d96860f commit 9ffa7ab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

quaddtype/numpy_quaddtype/_quaddtype_main.pyi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ class QuadPrecision:
8181
# See https://github.com/python/mypy/issues/18343#issuecomment-2571784915
8282
def __new__(cls, /, value: _IntoQuad, backend: _Backend = "sleef") -> Self: ...
8383

84+
# Attributes
85+
@property
86+
def real(self) -> Self: ...
87+
@property
88+
def imag(self) -> Self: ...
89+
8490
# Rich comparison operators
8591
# NOTE: Unlike other numpy scalars, these return `builtins.bool`, not `np.bool`.
8692
@override

0 commit comments

Comments
 (0)