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
@@ -13,10 +13,6 @@
from AlgorithmImports import *
from System import Action
from QuantConnect.Logging import *
### <summary>
### Algorithm asserting that when setting custom models for canonical securities, a one-time warning is sent
### informing the user that the contracts models are different (not the custom ones).
@@ -52,7 +48,7 @@ class OptionModelsConsistencyRegressionAlgorithm(QCAlgorithm):
security.set_volatility_model(CustomVolatilityModel())
class CustomSecurityInitializer(BrokerageModelSecurityInitializer):
def __init__(self, brokerage_model: BrokerageModel, security_seeder: SecuritySeeder):
def __init__(self, brokerage_model: IBrokerageModel, security_seeder: ISecuritySeeder):
super().__init__(brokerage_model, security_seeder)
class CustomFillModel(FillModel):