-
Notifications
You must be signed in to change notification settings - Fork 934
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
Buggy depreciation warining (client_factory will be replaced by gspread.http_client types) #1348
Comments
strange indeed... thanks for the issue :) I do not know the subtleties of the This is how we emit a warning: Lines 926 to 930 in 67759c7
The third argument to In your case, the stack level increases when you wrap As an addendum, I have made a PR #1349 which disables this warning if you have not set the For now, as well, if you want to hide warnings, you can set the |
I'm going to create the gc object one level to take care of it in my code. appreciate the prompt response. |
Hi thank you for raising this issue. Yes this is due to the stack level. Meaning: That should do for now it's only informative, we'll release 6.0.0 soon (:christmas_tree: :question: :upside_down_face: ) so it won't last. |
this is fixed by #1349 and will be included in the next release, 5.12.1 |
I am currently cleaning up my code for version 6.0 and ran into a somewhat strange scenario
When calling service_account_from_dict in a subfunction like so:
I get the following depreciation warning:
DeprecationWarning: [Deprecated][in version 6.0.0]: client_factory will be replaced by gspread.http_client types BugTest()
If I run the same code as a standalone I do not get any warnings and the rev notes don't seem to indicate any particular issue.
The text was updated successfully, but these errors were encountered: