Skip to content

Commit 9b7dbae

Browse files
committed
fixed nullability annotation on ConverterExtension.ToPython
1 parent 5d0d01a commit 9b7dbae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/converter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ private static bool ToArray(IntPtr value, Type obType, out object? result, bool
937937

938938
public static class ConverterExtension
939939
{
940-
public static PyObject ToPython(this object o)
940+
public static PyObject ToPython(this object? o)
941941
{
942942
if (o is null) return Runtime.None;
943943
return new PyObject(Converter.ToPython(o, o.GetType()));

0 commit comments

Comments
 (0)