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

[Quantity] Show proper location of UnitStrippedWarning #907

Merged
merged 1 commit into from
Dec 2, 2019

Conversation

marscher
Copy link
Contributor

@marscher marscher commented Dec 2, 2019

Users are interested where in their code they triggered the warning
and not the original underlying implementation throwing the warning.
By setting the stacklevel accordingly, users see the line of their code, which
strips the warning.

Users are interested where in their code they triggered the warning 
and not the original underlying implementation throwing the warning.
By setting the stacklevel accordingly, users see the line of their code, which
strips the warning.
@hgrecco
Copy link
Owner

hgrecco commented Dec 2, 2019

bors r+

@hgrecco
Copy link
Owner

hgrecco commented Dec 2, 2019

Thanks!

bors bot added a commit that referenced this pull request Dec 2, 2019
907: [Quantity] Show proper location of UnitStrippedWarning r=hgrecco a=marscher

Users are interested where in their code they triggered the warning 
and not the original underlying implementation throwing the warning.
By setting the stacklevel accordingly, users see the line of their code, which
strips the warning.

Co-authored-by: Martin K. Scherer <marscher@users.noreply.github.com>
@bors
Copy link
Contributor

bors bot commented Dec 2, 2019

Build succeeded

@bors bors bot merged commit 2f2c88b into hgrecco:master Dec 2, 2019
@marscher
Copy link
Contributor Author

marscher commented Dec 2, 2019

You're welcome! That was the quickest merge in my GH history :)

@marscher marscher deleted the patch-1 branch December 2, 2019 16:40
@hgrecco
Copy link
Owner

hgrecco commented Dec 2, 2019

Sometimes the stars align! (An the PR was concise and well explained!)

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.

2 participants