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

increase warning stacklevel from 1 to 2 #1361

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

alifeee
Copy link
Collaborator

@alifeee alifeee commented Dec 4, 2023

when calling worksheet.update with the swapped argument order I didn't get a warning

so I changed the stacklevel until I did (to 2)

I still don't properly understand stacklevel, and this will not emit a warning if the user uses update in another of their own functions, only from a root file. In this way I don't think using warnings.warn is great.

Anyway, this is a plaster/band-aid fix.

@alifeee alifeee self-assigned this Dec 4, 2023
@alifeee alifeee requested a review from lavigne958 December 4, 2023 20:28
@alifeee alifeee added this to the 6.0.0 milestone Dec 4, 2023
@alifeee alifeee merged commit 9df2564 into feature/release_6_0_0 Dec 4, 2023
10 checks passed
@alifeee alifeee deleted the warning-stacklevel branch December 4, 2023 21:55
@alifeee alifeee mentioned this pull request Jan 26, 2024
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.

2 participants