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

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

Merged
merged 1 commit into from
Jul 5, 2023
Merged

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

merged 1 commit into from
Jul 5, 2023

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 iterative/dvc-gdrive#31

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

Fixes iterative/dvc-gdrive#31
@efiop efiop temporarily deployed to internal July 4, 2023 20:40 — with 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