mirror of
https://github.com/flibusta-apps/telegram_files_server.git
synced 2025-12-06 12:35:39 +01:00
Migrate to ruff
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from app.models import UploadBackends
|
||||
from app.services.storages import StoragesContainer, BotStorage, UserStorage
|
||||
from app.services.storages import BotStorage, StoragesContainer, UserStorage
|
||||
|
||||
|
||||
class FileDownloader:
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
from typing import Optional, Any
|
||||
from typing import Any, Optional
|
||||
|
||||
from fastapi import UploadFile
|
||||
|
||||
from app.models import UploadedFile, UploadBackends
|
||||
from app.services.storages import StoragesContainer, BotStorage, UserStorage
|
||||
from app.models import UploadBackends, UploadedFile
|
||||
from app.services.storages import BotStorage, StoragesContainer, UserStorage
|
||||
|
||||
|
||||
class Wrapper:
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import abc
|
||||
from typing import AsyncIterator, Union, Optional
|
||||
from typing import AsyncIterator, Optional, Union
|
||||
|
||||
import telethon.client
|
||||
import telethon.errors
|
||||
@@ -9,7 +8,7 @@ import telethon.tl.types
|
||||
from core.config import env_config
|
||||
|
||||
|
||||
class BaseStorage(abc.ABC):
|
||||
class BaseStorage:
|
||||
def __init__(
|
||||
self, channel_id: Union[str, int], app_id: int, api_hash: str, session: str
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user