1
0

Ruff check

This commit is contained in:
Jon Michael Aanes 2024-07-08 19:00:58 +02:00
parent 4367d95745
commit c2b32c9ea2
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
2 changed files with 6 additions and 8 deletions

View File

@ -9,10 +9,10 @@ their specific use cases, as the library most likely has a better
understanding of the ratelimiting and caching behaviour of their associated websites than the user has.
"""
import logging
import pathlib
import os
import datetime
import logging
import os
import pathlib
import requests
@ -42,8 +42,7 @@ CACHE_PATH_FROM_HOME = '.local/share/usagi-keiretsu/fin_data/http_cache'
def initialize_session() -> requests.Session:
"""
Creates Session with or without caching depending upon current
"""Creates Session with or without caching depending upon current
capabilities.
"""
logger.info('Setting up session')
@ -73,8 +72,7 @@ def setup_limiter(
expire_after: datetime.datetime | None = None,
**limiter_args,
) -> requests.Session:
"""
Initializes limiter on session for the given domain with the given
"""Initializes limiter on session for the given domain with the given
settings.
Will always return the given session itself.