diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2023-01-26 13:56:02 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2023-01-26 13:56:02 -0500 |
| commit | ede3b0735748565440e8395e965f33f96a8717bf (patch) | |
| tree | 288dfaa65b03536764501adfe1c574a230943cb5 | |
| parent | b562765b32cd45ecae1e28a9d87c21ad86426719 (diff) | |
| download | pyisda-ede3b0735748565440e8395e965f33f96a8717bf.tar.gz | |
allow to subclass deepcopy
| -rw-r--r-- | pyisda/credit_index.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyisda/credit_index.pyx b/pyisda/credit_index.pyx index 4bed815..0ce2161 100644 --- a/pyisda/credit_index.pyx +++ b/pyisda/credit_index.pyx @@ -276,7 +276,7 @@ cdef class CreditIndex(CurveList): def __deepcopy__(self, memo): cdef: - CreditIndex copy = CreditIndex.__new__(CreditIndex) + CreditIndex copy = type(self).__new__(type(self)) size_t i int n TContingentLeg* cl |
