mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[PR #497] [MERGED] In '__init__' super() method should use static class name in SpotifyClientCredentials and SpotifyOAuth #916
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#916
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/spotipy-dev/spotipy/pull/497
Author: @esolitos
Created: 5/24/2020
Status: ✅ Merged
Merged: 5/25/2020
Merged by: @stephanebruckert
Base:
master← Head:fix-dynamic-class-on-init📝 Commits (1)
87b2e99In 'init' super method should use static class name📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
spotipy/oauth2.py(+2 -2)📄 Description
Currently it is not possible to extend SpotifyClientCredentials and SpotifyOAuth without overrding completely the
__init__method and avoid callingsuper().__init__().I am not an expert in Python so I could be completely wrong, however from my research this seem to be caused from the fact that in the classes'
__init__they refer to the dynamicself.__class__, which when called by the extending class leads to to an infinite recursion.This PR fixes the issue by setting the class name statically in the
super()call.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.