uranusjr commented on code in PR #26872:
URL: https://github.com/apache/airflow/pull/26872#discussion_r1000390558


##########
airflow/providers/common/sql/hooks/sql.py:
##########
@@ -102,13 +102,13 @@ class DbApiHook(BaseForDbApiHook):
     """
 
     # Override to provide the connection name.
-    conn_name_attr = None  # type: str
+    conn_name_attr: str | None = None

Review Comment:
   ```suggestion
       conn_name_attr: str
   ```
   
   We don’t need to None case (and this gets rid of the `cast` calls below).



-- 
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