lballabio / QuantLib-SWIG

QuantLib wrappers to other languages
Other
338 stars 282 forks source link

Add defaults for SimpleQuote #622

Closed eltoder closed 7 months ago

eltoder commented 7 months ago

These exist in C++.

lballabio commented 7 months ago

Hmm, sorry, the doubleOrNull typemap I applied doesn't seem to accept ints, hence the error in the test. Do you want to generalize it or should I?

eltoder commented 7 months ago

I'm fine with just having it as Real. If we want to accept Nones, we can just allow ints in the doubleOrNull typemap, right?

lballabio commented 7 months ago

Right—I just did.