Skip to content

pydrive2: use isinstance() instead of type()#291

Merged
efiop merged 1 commit intomainfrom
pydrive2-type
Jul 5, 2023
Merged

pydrive2: use isinstance() instead of type()#291
efiop merged 1 commit intomainfrom
pydrive2-type

Conversation

@efiop
Copy link
Contributor

@efiop efiop commented Jul 4, 2023

Looks like this was an anti pattern that stuck around from some early days.

Fixes treeverse/dvc-gdrive#31

Looks like this was an anti pattern that stuck around from some early
days.

Fixes treeverse/dvc-gdrive#31
@efiop efiop temporarily deployed to internal July 4, 2023 20:40 — with Image GitHub Actions Inactive
@efiop efiop requested a review from shcheklein July 4, 2023 20:55
Copy link
Member

@shcheklein shcheklein left a comment

Choose a reason for hiding this comment

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

Thanks. Do we need a test for this?

@efiop
Copy link
Contributor Author

efiop commented Jul 4, 2023

@shcheklein Did consider it, but I don't think it is worth it. It is just an anti-pattern that needed to be fixed (and linters, which are unfortunately not enabled apparently, should catch this).

Will wait a bit for the confirmation from the user.

Copy link

@maltempi maltempi left a comment

Choose a reason for hiding this comment

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

I reported this bug and this solved our issue. Thank you very much!

@efiop efiop merged commit 30c0f48 into main Jul 5, 2023
@efiop efiop deleted the pydrive2-type branch July 5, 2023 11:58
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.

push: Unnable access remote when gdrive_user_credentials_file is set into .dvc/config

3 participants