Skip to content

Conversation

@Taragolis
Copy link
Contributor

This partially resolve in #36831

However I forget/do not have a time to resolve other cases and additional warnings.warn without explicit stacklevel was added unfortunetly. For prevent add new ones which easily could be missed during code reviews, better enable it and created follow up task for resolve existed cases.

In most cases stacklevel=2 is more suitable it will refers to the code which invoke this part but it can't be set blindly because it could be additionaly wraps.

With default stacklevel=1 it refers to the line with warnings.warn, see: https://docs.astral.sh/ruff/rules/no-explicit-stacklevel/


^ 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 newsfragments.

@Taragolis Taragolis added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Apr 14, 2024
@potiuk potiuk merged commit aa73bca into apache:main Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants