jscheffl commented on code in PR #59940: URL: https://github.com/apache/airflow/pull/59940#discussion_r2666505815
########## providers/postgres/src/airflow/providers/postgres/hooks/postgres.py: ########## @@ -27,7 +27,12 @@ import psycopg2.extras from more_itertools import chunked from psycopg2.extras import DictCursor, NamedTupleCursor, RealDictCursor, execute_batch -from sqlalchemy.engine import URL + +try: Review Comment: You can take a look here where corrections were made: https://github.com/apache/airflow/pull/60094/changes#diff-d2d44a709cc687a2a6c390995289cba7689683c39519b81bab4bdd50f00c9bafR28 One other option (which I'd prefer actually) is also making it with lazy imports like in: https://github.com/apache/airflow/pull/60110/changes#diff-60967e11945bf5adce44c15269d657d1ff09ed8916f91e82ba1cf1beddf1e9a7R183 -- 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]
