mik-laj commented on a change in pull request #11170:
URL: https://github.com/apache/airflow/pull/11170#discussion_r495576366
##########
File path: airflow/providers/databricks/hooks/databricks.py
##########
@@ -73,7 +72,9 @@ def is_successful(self) -> bool:
"""True if the result state is SUCCESS"""
return self.result_state == 'SUCCESS'
- def __eq__(self, other) -> bool:
+ def __eq__(self, other: object) -> bool:
+ if not isinstance(other, RunState):
+ return NotImplemented
Review comment:
Should it be raise?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]