The GitHub Actions job "Tests" on airflow.git/2603/fix-mypy-sql-validation has 
succeeded.
Run started by GitHub user Dev-iL (triggered by Dev-iL).

Head commit for run:
2030415984a617232847f37fbf19f3dfe0462d75 / Dev-iL 
<[email protected]>
Fix mypy error in sql_validation by narrowing Expr to Expression

sqlglot.parse() returns list[Expr | None] where Expr is a base class
of Expression. The `is not None` filter produces list[Expr] which is
not assignable to list[Expression] (lists are invariant). Using
isinstance(s, exp.Expression) gives mypy a proper type narrowing signal.

Report URL: https://github.com/apache/airflow/actions/runs/23184762123

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to