More Python syntax check improvements (#8758)
Syntax Tests / build (push) Has been cancelled
API Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled

* Ignore more mypy errors and fix more python algos syntax

* Minor change
This commit is contained in:
Jhonathan Abreu
2025-05-08 18:06:18 -04:00
committed by GitHub
parent d2d1ca5c9e
commit 201ea1ce74
14 changed files with 86 additions and 74 deletions
@@ -43,8 +43,8 @@ class AddOptionContractExpiresRegressionAlgorithm(QCAlgorithm):
data: Slice object keyed by symbol containing the stock data
'''
if self._option == None:
options = self.option_chain(self._twx)
options = sorted(options, key=lambda x: x.id.symbol)
chain = self.option_chain(self._twx)
options = sorted(chain, key=lambda x: x.id.symbol)
option = next((option
for option in options