potiuk commented on a change in pull request #21155:
URL: https://github.com/apache/airflow/pull/21155#discussion_r793872553
##########
File path: airflow/providers/snowflake/hooks/snowflake.py
##########
@@ -32,6 +32,14 @@
from airflow.utils.strings import to_boolean
+def _try_to_boolean(value: Any):
+ if value is None:
+ return False
+ if isinstance(value, (str, type(None))):
Review comment:
isn't type(None) covered by earlier `is None` check? Can there be an
object of NoneType that fails "is None" check?
--
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]