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

Fixup gspread client init arguments #1412

Merged
merged 1 commit into from Feb 14, 2024
Merged

Fixup gspread client init arguments #1412

merged 1 commit into from Feb 14, 2024

Conversation

lavigne958
Copy link
Collaborator

In order to be backward compatible re-order gspread client init
arguments, and assign a default value to the new argument.

closes #1411

Signed-off-by: Alexandre Lavigne lavigne958@gmail.com

In order to be backward compatible re-order gspread client init
arguments, and assign a default value to the new argument.

closes #1411

Signed-off-by: Alexandre Lavigne <lavigne958@gmail.com>
@lavigne958 lavigne958 self-assigned this Feb 13, 2024
@lavigne958
Copy link
Collaborator Author

I will make a new release 6.0.2 right after this PR is merged in order to unblock gspread-pandas

Copy link
Collaborator

@alifeee alifeee left a comment

Choose a reason for hiding this comment

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

looks good to me.

I suppose this is similar to how the Worksheet __init__ was changed with the assumption that it was not being used.

but in fact the Client object __init__ is a public function so people were using it, unexpectedly.

This is a good reminder to realise what should count as public API and try to remain compatible.

a good and quick change :)

roll on 6.0.2 :)

@lavigne958
Copy link
Collaborator Author

yes exactly, that's the same problem.
yes it is, never expected users to create their own client, here it's a bit special as aiguofer used to contribute to this repository. Not everyone can do it or will take the time to do it.

@lavigne958 lavigne958 merged commit 4267229 into master Feb 14, 2024
10 checks passed
@lavigne958 lavigne958 deleted the bugfix/client_init branch February 14, 2024 13:52
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.

Reorder gspread client init arguments
2 participants