Update QuantConnect.pythonnet to 2.0.65 - #9660
Closed
jhonabreul wants to merge 1 commit into
Closed
Conversation
Collaborator
Author
|
Superseded: the version bump moved into #9659 alongside the datetime/date error-message improvements. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Updates the
QuantConnect.pythonnetpackage reference to 2.0.65 in the 11 csproj files that consume it.2.0.65 makes .NET
DateTimevalues converted to Python support subtraction and ordering against puredatetime.dateoperands (coerced via the datetime's date part), removing theunsupported operand type(s) for -: 'datetime.datetime' and 'datetime.date'/can't compare datetime.datetime to datetime.datefailures from user algorithms' DTE-style math: QuantConnect/pythonnet#143.Do not merge until QuantConnect/pythonnet#143 is merged and 2.0.65 is indexed on NuGet — restore fails before then. Companion (no merge-order dependency): #9659 improves the error messages for the datetime/date mixes pythonnet cannot coerce.
Related Issue
N/A
Motivation and Context
DTE filtering (
(contract.id.date - self.time.date()).days) is the most repeated runtime arithmetic failure in user Python algorithms; 2.0.65 removes it.Requires Documentation Change
No
How Has This Been Tested?
Python.Runtime.dllinjected over Lean's test output (mirroring pythonnet's Lean CI workflows): Python unit tests 16045 passed / 0 failed / 9 skipped; Python regression algorithms 324/324 passed.Types of changes
Checklist: