Commit 2db2f6e
committed
Fix: Convert scopes set to list in Credentials.__init__
This change ensures that if a set of scopes is passed to Credentials, it is converted to a list. This prevents issues with JSON serialization (to_json failure) and ensures consistent mutability behavior for the scopes property.
Also updated tests/test__oauth2client.py to handle the type change (set -> list) in equality checks.
Fixes #11451 parent 8f9bd03 commit 2db2f6e
File tree
2 files changed
+1
-30
lines changed- google/auth
- tests
2 files changed
+1
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
| 643 | + | |
651 | 644 | | |
652 | 645 | | |
653 | 646 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | 764 | | |
787 | 765 | | |
788 | 766 | | |
| |||
0 commit comments