Skip to content

Fixup gspread client init arguments - #1412

Merged
lavigne958 merged 1 commit into
masterfrom
bugfix/client_init
Feb 14, 2024
Merged

lavigne958 merged 1 commit into
masterfrom
bugfix/client_init

Conversation

@lavigne958

Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

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

@alifeee alifeee left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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
@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