placeholder classes to pass pylint

This commit is contained in:
Lex Berezhny 2020-06-06 13:20:26 -04:00
parent b9d954a394
commit 2927875830
4 changed files with 27 additions and 5 deletions

View file

@ -10,7 +10,11 @@ from lbry.connection_manager import ConnectionManager
if typing.TYPE_CHECKING:
from lbry.conf import Config
from lbry.dht.protocol.data_store import DictDataStore
from lbry.extras.daemon.storage import SQLiteStorage
class SQLiteStorage:
pass
log = logging.getLogger(__name__)

View file

@ -3,11 +3,15 @@ import typing
import logging
if typing.TYPE_CHECKING:
from lbry.dht.node import Node
from lbry.extras.daemon.storage import SQLiteStorage
log = logging.getLogger(__name__)
class SQLiteStorage:
pass
class BlobAnnouncer:
def __init__(self, loop: asyncio.AbstractEventLoop, node: 'Node', storage: 'SQLiteStorage'):
self.loop = loop

View file

@ -19,12 +19,15 @@ if typing.TYPE_CHECKING:
from lbry.blob.blob_manager import BlobManager
from lbry.blob.blob_info import BlobInfo
from lbry.dht.node import Node
from lbry.extras.daemon.analytics import AnalyticsManager
from lbry.blockchain.transaction import Transaction
log = logging.getLogger(__name__)
class StoredContentClaim:
pass
def _get_next_available_file_name(download_directory: str, file_name: str) -> str:
base_name, ext = os.path.splitext(os.path.basename(file_name))
i = 0

View file

@ -20,11 +20,22 @@ if typing.TYPE_CHECKING:
from lbry.conf import Config
from lbry.blob.blob_manager import BlobManager
from lbry.dht.node import Node
from lbry.extras.daemon.analytics import AnalyticsManager
from lbry.extras.daemon.storage import SQLiteStorage, StoredContentClaim
from lbry.service.exchange_rate_manager import ExchangeRateManager
from lbry.service.base import Service
class AnalyticsManager:
pass
class SQLiteStorage:
pass
class StoredContentClaim:
pass
log = logging.getLogger(__name__)
FILTER_FIELDS = [