Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d649d6c commit d1bc193Copy full SHA for d1bc193
1 file changed
src/runtime/module.cs
@@ -313,7 +313,7 @@ public PyModule Set(string name, object value)
313
{
314
if (name is null) throw new ArgumentNullException(nameof(name));
315
316
- using var _value = Converter.ToPython(value, value?.GetType() ?? typeof(object));
+ using var _value = Converter.ToPythonDetectType(value);
317
SetPyValue(name, _value.Borrow());
318
return this;
319
}
0 commit comments