Ruff check
This commit is contained in:
parent
4367d95745
commit
c2b32c9ea2
|
@ -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.
|
understanding of the ratelimiting and caching behaviour of their associated websites than the user has.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
|
||||||
import pathlib
|
|
||||||
import os
|
|
||||||
import datetime
|
import datetime
|
||||||
|
import logging
|
||||||
|
import os
|
||||||
|
import pathlib
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
@ -42,8 +42,7 @@ CACHE_PATH_FROM_HOME = '.local/share/usagi-keiretsu/fin_data/http_cache'
|
||||||
|
|
||||||
|
|
||||||
def initialize_session() -> requests.Session:
|
def initialize_session() -> requests.Session:
|
||||||
"""
|
"""Creates Session with or without caching depending upon current
|
||||||
Creates Session with or without caching depending upon current
|
|
||||||
capabilities.
|
capabilities.
|
||||||
"""
|
"""
|
||||||
logger.info('Setting up session')
|
logger.info('Setting up session')
|
||||||
|
@ -73,8 +72,7 @@ def setup_limiter(
|
||||||
expire_after: datetime.datetime | None = None,
|
expire_after: datetime.datetime | None = None,
|
||||||
**limiter_args,
|
**limiter_args,
|
||||||
) -> requests.Session:
|
) -> 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.
|
settings.
|
||||||
|
|
||||||
Will always return the given session itself.
|
Will always return the given session itself.
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = '0.1.10'
|
__version__ = '0.1.10'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user