potiuk commented on issue #19891:
URL: https://github.com/apache/airflow/issues/19891#issuecomment-1003551965


   > I briefly looked at vertica_to_mysql.py, tmpfile is accessed here in this 
block
   
   IT's because if it kinda distributed - opening using and closing of the 
tmpfille are happening only if "self.bulk_load" is True, so tmpfile will never 
be None there. - but MyPY is not analysing it that deeply.
   
   I'd say we should refactor this method a bit. Let me attempt it


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