We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 223d1be commit 006cb3bCopy full SHA for 006cb3b
src/runtime/Util/OpsHelper.cs
@@ -83,11 +83,9 @@ internal static class EnumOps<T> where T : Enum
83
84
[ForbidPythonThreads]
85
#pragma warning disable IDE1006 // Naming Styles - must match Python
86
- public static PyInt __int__(T value)
+ public static object __int__(T value)
87
#pragma warning restore IDE1006 // Naming Styles
88
- => IsUnsigned
89
- ? new PyInt(Convert.ToUInt64(value))
90
- : new PyInt(Convert.ToInt64(value));
+ => IsUnsigned ? Convert.ToUInt64(value) : Convert.ToInt64(value);
91
92
#region Arithmetic operators
93
0 commit comments