Skip to content

Commit f3e6275

Browse files
committed
add couple noexcept
1 parent 8a91f9a commit f3e6275

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

quantlib/cashflows/coupon.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ from quantlib.cashflow cimport CashFlow
22
cimport quantlib.cashflows._coupon as _coupon
33

44
cdef class Coupon(CashFlow):
5-
cdef inline _coupon.Coupon* _get_coupon(self)
5+
cdef inline _coupon.Coupon* _get_coupon(self) noexcept

quantlib/cashflows/coupon.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cimport quantlib._cashflow as _cf
88

99
cdef class Coupon(CashFlow):
1010

11-
cdef inline _coupon.Coupon* _get_coupon(self):
11+
cdef inline _coupon.Coupon* _get_coupon(self) noexcept:
1212
return <_coupon.Coupon*>self._thisptr.get()
1313

1414
@property

quantlib/cashflows/floating_rate_coupon.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ from quantlib.cashflows.coupon cimport Coupon
22
from . cimport _floating_rate_coupon as _frc
33

44
cdef class FloatingRateCoupon(Coupon):
5-
cdef inline _frc.FloatingRateCoupon* _get_frc(self)
5+
cdef inline _frc.FloatingRateCoupon* _get_frc(self) noexcept

quantlib/cashflows/floating_rate_coupon.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ cdef class FloatingRateCoupon(Coupon):
3030
deref(day_counter._thisptr), is_in_arrears)
3131
)
3232

33-
cdef inline _frc.FloatingRateCoupon* _get_frc(self):
33+
cdef inline _frc.FloatingRateCoupon* _get_frc(self) noexcept:
3434
return <_frc.FloatingRateCoupon*>self._thisptr.get()
3535

3636
def set_pricer(self, FloatingRateCouponPricer pricer not None):

0 commit comments

Comments
 (0)