Skip to content

Improve typing for providers config loader - #32782

Merged
potiuk merged 1 commit into
apache:mainfrom
pierrejeambrun:improve-providers-configuration-loader-typing
Jul 23, 2023
Merged

Improve typing for providers config loader#32782
potiuk merged 1 commit into
apache:mainfrom
pierrejeambrun:improve-providers-configuration-loader-typing

Conversation

@pierrejeambrun

Copy link
Copy Markdown
Member

Stricter types for providers_configuration_loaded and remove unnecessary cast call.

related: #32765

@potiukpotiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand a single bit of it, but looks cool. Adding to my learning toolbox :D

@potiuk
potiuk merged commit 505fe85 into apache:mainJul 23, 2023
@hussein-awala

Copy link
Copy Markdown
Member

@potiuk We use the same syntax in the session utils https://github.com/apache/airflow/blob/main/airflow/utils/session.py

@potiuk

Copy link
Copy Markdown
Member

Yeah. I know :) . I just would love to understand it deeply. The Typing system of Python has some dark corners I did not have time to explore.

@potiuk

Copy link
Copy Markdown
Member

Yet

@pierrejeambrun
pierrejeambrun deleted the improve-providers-configuration-loader-typing branch July 23, 2023 12:45
@ephraimbuddyephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Aug 2, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:skipChanges that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@pierrejeambrun@hussein-awala@potiuk@ephraimbuddy