Skip to content

Commit

Permalink
fix: patches mypy no-redef error for duplicate Row definition
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmshi committed Oct 22, 2024
1 parent 42b9473 commit 2a9b496
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion providers/tests/snowflake/operators/test_snowflake_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@
except ImportError:
# Row is used in the parametrize so it's parsed during collection and we need to have a viable
# replacement for the collection time when databricks is not installed (Python 3.12 for now)
def Row(*args, **kwargs):
def MockRow(*args, **kwargs):
return MagicMock()

Row = MockRow


from airflow.models.connection import Connection
from airflow.providers.common.compat.openlineage.facet import (
Expand Down

0 comments on commit 2a9b496

Please sign in to comment.