Fix pattern

This commit is contained in:
M-307 2022-08-03 00:40:30 +07:00
parent 0cbe0d54d8
commit 886dcc8c8b
3 changed files with 5 additions and 5 deletions

View File

@ -2,6 +2,7 @@ import json
from cachetools import TTLCache
class Cache:
def __init__(self, maxsize, ttl):
self.cache = TTLCache(maxsize, ttl)

View File

@ -4,7 +4,6 @@ import json
from typing import Union
from .model import EnkaNetworkResponse
from .exception import VaildateUIDError, UIDNotFounded
from .assets import Assets

View File

@ -52,7 +52,7 @@ async def request(url: str, headers: dict = None) -> dict:
headers = {}
retry = 0
async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=30)) as session:
async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=30)) as session: # noqa: E501
"""
From https://gist.github.com/foobarna/19c132304e140bf5031c273f6dc27ece # noqa: E501
"""