Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase typing coverage for Apache and http provider package #9729

Merged
merged 15 commits into from Jul 19, 2020
Merged

Increase typing coverage for Apache and http provider package #9729

merged 15 commits into from Jul 19, 2020

Conversation

ephraimbuddy
Copy link
Contributor

@ephraimbuddy ephraimbuddy commented Jul 8, 2020


This PR is about increasing typing coverage for the apache provider & http provider. Part of: #9708
I also worked on apply_defaults decorator and BaseHook to help in more coverage.

Make sure to mark the boxes below before creating PR: [x]

  • Description above provides context of the change
  • Unit tests coverage for changes (not needed for documentation changes)
  • Target Github ISSUE in description if exists
  • Commits follow "How to write a good git commit message"
  • Relevant documentation is updated including usage instructions.
  • I will engage committers as explained in Contribution Workflow Example.

In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.

@ephraimbuddy ephraimbuddy marked this pull request as draft July 8, 2020 20:38
Copy link
Member

@kaxil kaxil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI failed

airflow/providers/google/cloud/hooks/bigquery.py:83: error: Return type "BigQueryConnection" of "get_conn" incompatible with return type "None" in supertype "BaseHook"
airflow/providers/google/cloud/hooks/secret_manager.py:50: error: Return type "_SecretManagerClient" of "get_conn" incompatible with return type "None" in supertype "BaseHook"

airflow/hooks/base_hook.py Outdated Show resolved Hide resolved
@ephraimbuddy ephraimbuddy changed the title Increase typing coverage for Apache provider package Increase typing coverage for Apache and http provider package Jul 9, 2020
@ephraimbuddy ephraimbuddy marked this pull request as ready for review July 15, 2020 12:16
@mik-laj mik-laj merged commit 4d74ac2 into apache:master Jul 19, 2020
@ephraimbuddy ephraimbuddy deleted the apache-mypy branch July 19, 2020 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants