Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fixed nullability annotation on ConverterExtension.ToPython
  • Loading branch information
lostmsu committed Oct 1, 2021
commit 9b7dbae876ad11334ba259fc83debf0a08d3174b
2 changes: 1 addition & 1 deletion src/runtime/converter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ private static bool ToArray(IntPtr value, Type obType, out object? result, bool

public static class ConverterExtension
{
public static PyObject ToPython(this object o)
public static PyObject ToPython(this object? o)
{
if (o is null) return Runtime.None;
return new PyObject(Converter.ToPython(o, o.GetType()));
Expand Down