File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ from quantlib.cashflow cimport CashFlow
22cimport quantlib.cashflows._coupon as _coupon
33
44cdef class Coupon(CashFlow):
5- cdef inline _coupon.Coupon* _get_coupon(self )
5+ cdef inline _coupon.Coupon* _get_coupon(self ) noexcept
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ cimport quantlib._cashflow as _cf
88
99cdef 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
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ from quantlib.cashflows.coupon cimport Coupon
22from . cimport _floating_rate_coupon as _frc
33
44cdef class FloatingRateCoupon(Coupon):
5- cdef inline _frc.FloatingRateCoupon* _get_frc(self )
5+ cdef inline _frc.FloatingRateCoupon* _get_frc(self ) noexcept
Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments