Add StubsAvoidImplicitsAttribute to avoid generating implicit types in stubs (#8718)

This allows the stubs generator to know when to not generate Union types for parameters that can accept multiple types, like Symbol | str | BaseContract
This commit is contained in:
Jhonathan Abreu
2025-04-23 13:22:14 -04:00
committed by GitHub
parent cf8c5b854a
commit 0df082cc68
6 changed files with 34 additions and 1 deletions
@@ -856,6 +856,7 @@ namespace QuantConnect.AlgorithmFactory.Python.Wrappers
/// override then this method will not be called without a called to base.OnEndOfDay(string)
/// </remarks>
/// <param name="symbol">Asset symbol for this end of day event. Forex and equities have different closing hours.</param>
[StubsAvoidImplicits]
public void OnEndOfDay(Symbol symbol)
{
try