Skip to content

More type hints for Amazon provider #11297

Closed

Description

@mik-laj

Description

The boto3 used by Amazon provider generates new classes at runtime, so mypy is not aware of types. Luckily, there is a package that has generated type annotations, but we have to install them separately - boto3-stubs
It would be nice for us to check if this library meets our expectations and integrate it with our CI.

CC: @kaxil @mlgruby @coopergillan

Use case / motivation

This will allow us to detect more problems during the static check. It will also provide a better development experience as the IDE will be able to suggest types.

Related Issues

N/A

Activity

  1. changed the title [-]Strict type hints for Amazon[/-] [+]More type hints for Amazon[/+] on Oct 6, 2020
  2. changed the title [-]More type hints for Amazon[/-] [+]More type hints for Amazon provider[/+] on Oct 6, 2020
  3. mlgruby commented on Oct 6, 2020

    @mlgruby
    Contributor

    Since you mentioned in last issue comment I had a look and it make sense to try it here.

    I can have a look.

  4. kaxil commented on Oct 6, 2020

    @kaxil
    Member

    Since you mentioned in last issue comment I had a look and it make sense to try it here.

    I can have a look.

    Cool, thanks. Not super important, this can wait if you'd like to work on other Type hints first. Completely up to you :)

  5. mlgruby commented on Oct 6, 2020

    @mlgruby
    Contributor

    Yup, just gonna do some checks and then switch to other type hints 🙂

  6. scrambldchannel commented on Oct 12, 2020

    @scrambldchannel
    Contributor

    I'm interested in helping with this too, I was just looking at the AWS provider typehints and came across the same library.

  7. potix2 commented on Oct 15, 2020

    @potix2
    Contributor

    I'm interested in this issue too.

  8. kaxil commented on Oct 15, 2020

    @kaxil
    Member

    Go for it @potix2 if you would like to create PR, take #11470 as an example

  9. potix2 commented on Oct 15, 2020

    @potix2
    Contributor

    I'm working on #11531. But I feel it's too large to ask for review. Should I divide into some small requests?

  10. kaxil commented on Oct 18, 2020

    @kaxil
    Member

    I'm working on #11531. But I feel it's too large to ask for review. Should I divide into some small requests?

    Sure got for it

  11. 7 remaining items

  12. potix2 commented on Dec 16, 2020

    @potix2
    Contributor

    I'm working on #10742, but it's a little harder than I expected. After complete it, I'll be back to this issue.

  13. coopergillan commented on Jun 20, 2021

    @coopergillan
    Contributor

    @mik-laj - came back to this after seeing a new comment on an old PR: https://github.com/apache/airflow/pull/10164/files#r653685526

    It looks like boto3_type_annotations is another option in addition to boto3-stubs as you mention.

    Do you have a preference? Do you know if either of these have yet been installed? Guessing no.

  14. mik-laj commented on Jun 20, 2021

    @mik-laj
    MemberAuthor

    boto3_type_annotations is deprecated. We should use boto3-stubs.

  15. added
    kind:taskA task that needs to be completed as part of a larger issue
    and removed on May 25, 2022
  16. self-assigned this
    on Jan 27, 2023
  17. removed their assignment
    on Mar 2, 2023
  18. Taragolis commented on Mar 2, 2023

    @Taragolis
    Contributor

    I do not a time and desire to complete this (and other) tasks.
    For someone who would like to work on this, implement this one could be nice start point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions