@@ -12,7 +12,7 @@ from libcpp.string cimport string
1212from ._date cimport Date
1313
1414
15- cdef extern from ' ql/time/imm.hpp' namespace " QuantLib::IMM" :
15+ cdef extern from ' ql/time/imm.hpp' namespace " QuantLib::IMM" nogil :
1616
1717 # Main cycle of the International %Money Market (a.k.a. %IMM) months
1818 cdef enum Month:
@@ -54,7 +54,7 @@ cdef extern from 'ql/time/imm.hpp' namespace "QuantLib::IMM":
5454 # International Money Market section of the Chicago Mercantile
5555 # Exchange.
5656
57- cdef Date nextDate(Date& d, bool mainCycle) except + ValueError
57+ cdef Date nextDate(Date& d, bool mainCycle)
5858
5959 # next IMM date following the given IMM code
6060 # returns the 1st delivery date for next contract listed in the
@@ -63,14 +63,14 @@ cdef extern from 'ql/time/imm.hpp' namespace "QuantLib::IMM":
6363
6464 cdef Date nextDate(string& immCode,
6565 bool mainCycle,
66- Date& referenceDate) except + ValueError
66+ Date& referenceDate) except +
6767
6868 # next IMM code following the given date
6969 # returns the IMM code for next contract listed in the
7070 # International Money Market section of the Chicago Mercantile
7171 # Exchange.
7272
73- cdef string nextCode(Date& d, bool mainCycle) except + ValueError
73+ cdef string nextCode(Date& d, bool mainCycle)
7474
7575 # next IMM code following the given code
7676 # returns the IMM code for next contract listed in the
@@ -79,4 +79,4 @@ cdef extern from 'ql/time/imm.hpp' namespace "QuantLib::IMM":
7979
8080 cdef string nextCode(string& immCode,
8181 bool mainCycle,
82- Date& referenceDate) except + ValueError
82+ Date& referenceDate) except +
0 commit comments