kunaljubce commented on PR #41343:
URL: https://github.com/apache/airflow/pull/41343#issuecomment-2470175028
@uranusjr @eladkal This change seems to have broken mypy provider checks due
to an inheritance:
```
→ pre-commit run --color always --verbose --hook-stage manual mypy-providers
--all-files
Run mypy for providers
(manual)..........................................Failed
- hook id: mypy-providers
- duration: 95.38s
- exit code: 1
Running /opt/airflow/scripts/in_container/run_mypy.sh with arguments:
['providers/src/airflow/providers', 'providers/tests', '--namespace-packages']
Using 'uv' to install Airflow
Using airflow version from current sources
Using 'uv' to install Airflow
providers/tests/system/snowflake/example_snowpark_decorator.py:68: note:
"__call__" is considered instance variable, to make it class variable use
ClassVar[...]
providers/tests/system/snowflake/example_snowpark_decorator.py:68: note:
Error code "misc" not covered by "type: ignore" comment
providers/tests/microsoft/conftest.py:133: error: Signature of "xcom_pull"
incompatible with supertype "TaskInstance" [override]
def xcom_pull(
^
providers/tests/microsoft/conftest.py:133: note: Superclass:
providers/tests/microsoft/conftest.py:133: note: def
xcom_pull(task_ids: Union[str, Iterable[str], None] = ..., dag_id:
Optional[str] = ..., key: str = ..., include_prior_dates: bool = ..., session:
Any = ..., *, map_indexes: Union[int, Iterable[int], None] = ..., default: Any
= ..., run_id: Optional[str] = ...) -> Any
providers/tests/microsoft/conftest.py:133: note: Subclass:
providers/tests/microsoft/conftest.py:133: note: def
xcom_pull(self, task_ids: Union[Iterable[str], str, None] = ..., dag_id:
Optional[str] = ..., key: str = ..., include_prior_dates: bool = ..., session:
Any = ..., *, map_indexes: Union[Iterable[int], int, None] = ..., default:
Optional[Any] = ...) -> Any
Found 1 error in 1 file (checked 3334 source files)
Error 1 returned
```
--
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]