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 authored and potiuk committed Oct 28, 2024
1 parent 25319a6 commit 23a999d
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 23a999d

Please sign in to comment.