Skip to content

Commit

Permalink
fix formatting and inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dieser-niko committed Jan 31, 2025
1 parent f312d7a commit b5e1577
Show file tree
Hide file tree
Showing 3 changed files with 200 additions and 164 deletions.
12 changes: 6 additions & 6 deletions spotipy/cache_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ class CacheFileHandler(CacheHandler):
"""

def __init__(
self,
cache_path: str | None = None,
username: str | None = None,
encoder_cls: type[JSONEncoder] | None = None,
self,
cache_path: str | None = None,
username: str | None = None,
encoder_cls: type[JSONEncoder] | None = None,
) -> None:
"""
Initialize CacheFileHandler instance.
Expand Down Expand Up @@ -249,7 +249,7 @@ def __init__(self, redis_obj: redis.client.Redis, key: str | None = None) -> Non
Initialize RedisCacheHandler instance.
:param redis_obj: The Redis object to function as the cache.
:param key: (Optional) The key to use to store the token in the cache.
:param key: (Optional) The key used to store the token in the cache.
"""
self.redis = redis_obj
self.key = key or "token_info"
Expand Down Expand Up @@ -292,7 +292,7 @@ def __init__(self, memcache, key=None) -> None:
Initialize MemcacheCacheHandler instance.
:param memcache: Memcache client object provided by pymemcache.
:param key: (Optional) The key to use to store the token in the cache.
:param key: (Optional) The key used to store the token in the cache.
"""
self.memcache = memcache
self.key = key or "token_info"
Expand Down
Loading

0 comments on commit b5e1577

Please sign in to comment.