Skip to content

[standard, common.sql] Add missing return type annotations to operators, sensors, and hooks - #71493

Open
Alwaysgaurav1 wants to merge 1 commit into
apache:mainfrom
Alwaysgaurav1:feat/add-type-annotations-standard-sql-providers
Open

[standard, common.sql] Add missing return type annotations to operators, sensors, and hooks#71493
Alwaysgaurav1 wants to merge 1 commit into
apache:mainfrom
Alwaysgaurav1:feat/add-type-annotations-standard-sql-providers

Conversation

@Alwaysgaurav1

Copy link
Copy Markdown

Description

Adds missing return type annotations (-> None, -> Any, -> tuple[bool, str], -> bool) and parameter type hints to operators, sensors, and hooks in providers/standard and providers/common/sql.

Key updates:

  • Added explicit return type hints to EmptyOperator.execute, SmoothOperator.execute, BashOperator.execute, TriggerDagRunOperator.execute, SQLColumnCheckOperator.execute, and SQLExecuteQueryOperator.execute.
  • Added return types to test_connection() in FSHook and DbApiHook.
  • Added explicit parameter type annotations for BashSensor.__init__ and FileSensor.__init__.

Tests

  • Validated static analysis with ruff check (all checks passed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant