Skip to content

Commit af30873

Browse files
committed
Use _pydecimal to not interfere with Lean/decimal.py
1 parent c8fdbcb commit af30873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/runtime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ private static void InitPyMembers()
277277
() => PyFloatType = IntPtr.Zero);
278278
XDecref(op);
279279

280-
IntPtr decimalMod = PyImport_ImportModule("decimal");
280+
IntPtr decimalMod = PyImport_ImportModule("_pydecimal");
281281
IntPtr decimalCtor = PyObject_GetAttrString(decimalMod, "Decimal");
282282
op = PyObject_CallObject(decimalCtor, IntPtr.Zero);
283283
PyDecimalType = PyObject_Type(op);

0 commit comments

Comments
 (0)