Skip to content

Commit 476ac4d

Browse files
committed
decorating stub
1 parent 9ffcbfd commit 476ac4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

quaddtype/numpy_quaddtype/_quaddtype_main.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ class QuadPrecision(np.floating[_128Bit]):
157157
# NOTE: is_integer() and as_integer_ratio() are defined on numpy.floating in the
158158
# stubs, but don't exist at runtime. And because QuadPrecision does not implement
159159
# them, we use this hacky workaround to emulate their absence.
160+
@override
160161
def is_integer(self, /) -> builtins.bool: ...
162+
@override
161163
def as_integer_ratio(self, /) -> tuple[int, int]: ...
162164

163165
#

0 commit comments

Comments
 (0)