[
https://issues.apache.org/jira/browse/AIRFLOW-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jarek Potiuk updated AIRFLOW-2851:
----------------------------------
Fix Version/s: 2.0.0
> Canonicalize "as _..." etc imports
> ----------------------------------
>
> Key: AIRFLOW-2851
> URL: https://issues.apache.org/jira/browse/AIRFLOW-2851
> Project: Apache Airflow
> Issue Type: Improvement
> Reporter: Taylor Edmiston
> Assignee: Taylor Edmiston
> Priority: Minor
> Fix For: 2.0.0
>
>
> This PR:
> 1. Replaces `import foo as _foo` style imports with the more common `import
> foo` used everywhere else across the codebase. I dug through history and
> couldn't find special reasons to maintain the as style imports here (I think
> it's just old code). Currently (33dd33c89d4b6454d224ca34bab5ae37fb9812a6),
> there are just a handful of import lines using `as _...` vs thousands not
> using it, so the goal here is to improve consistency.
> 2. It also simplifies `import foo.bar as bar` style imports to equivalent
> `from foo import bar`.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)