kaxil commented on code in PR #43116:
URL: https://github.com/apache/airflow/pull/43116#discussion_r1804929862


##########
airflow/__init__.py:
##########
@@ -15,13 +15,15 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-from __future__ import annotations
 
 # Make `airflow` a namespace package, supporting installing
 # airflow.providers.* in different locations (i.e. one in site, and one in user
 # lib.)  This is required by some IDEs to resolve the import paths.
+# And it _has_ to be the first code line too. Sad panda
 __path__ = __import__("pkgutil").extend_path(__path__, __name__)  # type: 
ignore
 
+from __future__ import annotations  # noqa: F404

Review Comment:
   Yeah, for now I think we can live with that bug.
   
   Once we move a good number of things from Airflow to SDK, maybe the 
`airflow/__init__.py` file won't have much content left to keep `from 
__future__ import annotations`!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to