Skip to content

Cleanup MyPy Ignores #53241

Closed
Closed
@gopidesupavan

Description

@gopidesupavan

Body

We have migrated mypy to 1.16.1, now we can cleanup type ignores where possible.

Follow the below steps

  1. Build lates ci image with breeze build ci-imgae --python 3.10
  2. export SHOW_UNUSED_MYPY_WARNINGS=true
  3. Run the ./scripts/ci/pre_commit/mypy_folder.py {Provider Name}

This will show what are all possible type ignores we can remove.

An example output looks like this.

Image

Remove all the unused type ignores and run it again see if anything breaks

Raise a PR with title Cleanup type ignores in <provider> provider where possible

ref PR: #53239

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:dev-envCI, pre-commit, pylint and other changes that do not change the behavior of the final codekind:metaHigh-level information important to the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions