Skip to content

Conversation

@ashb
Copy link
Member

@ashb ashb commented Aug 2, 2025

We've upraded to MyPy 1.17.0 now, so we can use the type guard again.

Also remove the redundant hasattr check - it was only needed because of incorrect mocking in tests. This was identified in #54048 where I fixed it for a backport


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an 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 a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

We've upraded to MyPy 1.17.0 now, so we can use the type guard again.

Also remove the redundant hasattr check - it was only needed because of
incorrect mocking in tests.
Copy link
Member

@gopidesupavan gopidesupavan left a comment

Choose a reason for hiding this comment

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

Thanks for updating it :)

@ashb ashb merged commit 7ea6245 into apache:main Aug 2, 2025
77 checks passed
@ashb ashb deleted the remove-redundant-hasattr-redact branch August 2, 2025 21:19
@potiuk
Copy link
Member

potiuk commented Aug 3, 2025

Nice!

ferruzzi pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Aug 7, 2025
We've upraded to MyPy 1.17.0 now, so we can use the type guard again.

Also remove the redundant hasattr check - it was only needed because of
incorrect mocking in tests.
fweilun pushed a commit to fweilun/airflow that referenced this pull request Aug 11, 2025
We've upraded to MyPy 1.17.0 now, so we can use the type guard again.

Also remove the redundant hasattr check - it was only needed because of
incorrect mocking in tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants