Skip to content

Fix mypy issues in example_twitter_dag#21571

Merged
potiuk merged 1 commit intoapache:mainfrom
astronomer:fix_mypy_main
Feb 15, 2022
Merged

Fix mypy issues in example_twitter_dag#21571
potiuk merged 1 commit intoapache:mainfrom
astronomer:fix_mypy_main

Conversation

@jedcunningham
Copy link
Copy Markdown
Member

This fixes mypy issues in the example_twitter_dag:

mypy airflow/providers/apache/hive/example_dags/example_twitter_dag.py 
airflow/providers/apache/hive/example_dags/example_twitter_dag.py:88: error: Unsupported left operand type for >> ("Task[Callable[[], Any]]")  [operator]
        fetch_tweets >> clean_tweets >> analyze_tweets
        ^
airflow/providers/apache/hive/example_dags/example_twitter_dag.py:127: error: Unsupported operand types for >> ("Task[Callable[[], Any]]" and "BashOperator") 
[operator]
            analyze_tweets >> load_to_hdfs >> load_to_hive >> hive_to_mysql
            ^
airflow/providers/apache/hive/example_dags/example_twitter_dag.py:147: error: Unsupported operand types for >> ("Task[Callable[[], Any]]" and "BashOperator") 
[operator]
            analyze_tweets >> load_to_hdfs >> load_to_hive >> hive_to_mysql
            ^
Found 3 errors in 1 file (checked 1 source file)

@github-actions
Copy link
Copy Markdown

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label Feb 15, 2022
@potiuk potiuk merged commit 041babb into apache:main Feb 15, 2022
@ashb ashb deleted the fix_mypy_main branch February 15, 2022 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers okay to merge It's ok to merge this PR as it does not require more tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants