-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more type hints to the code base (#30503)
* Fully type Pool Also fix a bug where create_or_update_pool silently fails when an empty name is given. An error is raised instead now. * Add types to 'airflow dags' * Add types to 'airflow task' and 'airflow job' * Improve KubernetesExecutor typing * Add types to BackfillJob This triggers an existing typing bug that pickle_id is incorrectly typed as str in executors, while it should be int in practice. This is fixed to keep things straight. * Add types to job classes * Fix missing DagModel case in SchedulerJob * Add types to DagCode * Add more types to DagRun * Add types to serialized DAG model * Add more types to TaskInstance and TaskReschedule * Add types to Trigger * Add types to MetastoreBackend * Add types to external task sensor * Add types to AirflowSecurityManager This uncovers a couple of incorrect type hints in the base SecurityManager (in fab_security), which are also fixed. * Add types to views This slightly improves how view functions are typechecked and should prevent some trivial bugs.
- Loading branch information
Showing
32 changed files
with
562 additions
and
390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.