From 006cb3b30519fb59a515f2acd9e340e1c6224cd3 Mon Sep 17 00:00:00 2001 From: Jhonathan Abreu Date: Fri, 31 Oct 2025 11:28:30 -0400 Subject: [PATCH 1/2] Minor fix for fatal error when converting C# enums to in --- src/runtime/Util/OpsHelper.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/runtime/Util/OpsHelper.cs b/src/runtime/Util/OpsHelper.cs index 135a67163..1d6e55246 100644 --- a/src/runtime/Util/OpsHelper.cs +++ b/src/runtime/Util/OpsHelper.cs @@ -83,11 +83,9 @@ internal static class EnumOps where T : Enum [ForbidPythonThreads] #pragma warning disable IDE1006 // Naming Styles - must match Python - public static PyInt __int__(T value) + public static object __int__(T value) #pragma warning restore IDE1006 // Naming Styles - => IsUnsigned - ? new PyInt(Convert.ToUInt64(value)) - : new PyInt(Convert.ToInt64(value)); + => IsUnsigned ? Convert.ToUInt64(value) : Convert.ToInt64(value); #region Arithmetic operators From c3a1152d10e0925c857c0b34a2961c2e0ade4228 Mon Sep 17 00:00:00 2001 From: Jhonathan Abreu Date: Fri, 31 Oct 2025 12:19:22 -0400 Subject: [PATCH 2/2] Bump version to 2.0.50 --- src/perf_tests/Python.PerformanceTests.csproj | 4 ++-- src/runtime/Properties/AssemblyInfo.cs | 4 ++-- src/runtime/Python.Runtime.csproj | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/perf_tests/Python.PerformanceTests.csproj b/src/perf_tests/Python.PerformanceTests.csproj index 6a5f349b0..caf5ae300 100644 --- a/src/perf_tests/Python.PerformanceTests.csproj +++ b/src/perf_tests/Python.PerformanceTests.csproj @@ -13,7 +13,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + compile @@ -25,7 +25,7 @@ - + diff --git a/src/runtime/Properties/AssemblyInfo.cs b/src/runtime/Properties/AssemblyInfo.cs index 867d91130..614537465 100644 --- a/src/runtime/Properties/AssemblyInfo.cs +++ b/src/runtime/Properties/AssemblyInfo.cs @@ -4,5 +4,5 @@ [assembly: InternalsVisibleTo("Python.EmbeddingTest, PublicKey=00240000048000009400000006020000002400005253413100040000110000005ffd8f49fb44ab0641b3fd8d55e749f716e6dd901032295db641eb98ee46063cbe0d4a1d121ef0bc2af95f8a7438d7a80a3531316e6b75c2dae92fb05a99f03bf7e0c03980e1c3cfb74ba690aca2f3339ef329313bcc5dccced125a4ffdc4531dcef914602cd5878dc5fbb4d4c73ddfbc133f840231343e013762884d6143189")] [assembly: InternalsVisibleTo("Python.Test, PublicKey=00240000048000009400000006020000002400005253413100040000110000005ffd8f49fb44ab0641b3fd8d55e749f716e6dd901032295db641eb98ee46063cbe0d4a1d121ef0bc2af95f8a7438d7a80a3531316e6b75c2dae92fb05a99f03bf7e0c03980e1c3cfb74ba690aca2f3339ef329313bcc5dccced125a4ffdc4531dcef914602cd5878dc5fbb4d4c73ddfbc133f840231343e013762884d6143189")] -[assembly: AssemblyVersion("2.0.49")] -[assembly: AssemblyFileVersion("2.0.49")] +[assembly: AssemblyVersion("2.0.50")] +[assembly: AssemblyFileVersion("2.0.50")] diff --git a/src/runtime/Python.Runtime.csproj b/src/runtime/Python.Runtime.csproj index 3b4b62f0c..7cbbfe39e 100644 --- a/src/runtime/Python.Runtime.csproj +++ b/src/runtime/Python.Runtime.csproj @@ -5,7 +5,7 @@ Python.Runtime Python.Runtime QuantConnect.pythonnet - 2.0.49 + 2.0.50 false LICENSE https://github.com/pythonnet/pythonnet