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
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user