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: if typing.TYPE_CHECKING:
from lbry.conf import Config from lbry.conf import Config
from lbry.dht.protocol.data_store import DictDataStore from lbry.dht.protocol.data_store import DictDataStore
from lbry.extras.daemon.storage import SQLiteStorage
class SQLiteStorage:
pass
log = logging.getLogger(__name__) log = logging.getLogger(__name__)

View file

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

View file

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

View file

@ -20,11 +20,22 @@ if typing.TYPE_CHECKING:
from lbry.conf import Config from lbry.conf import Config
from lbry.blob.blob_manager import BlobManager from lbry.blob.blob_manager import BlobManager
from lbry.dht.node import Node 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.exchange_rate_manager import ExchangeRateManager
from lbry.service.base import Service from lbry.service.base import Service
class AnalyticsManager:
pass
class SQLiteStorage:
pass
class StoredContentClaim:
pass
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
FILTER_FIELDS = [ FILTER_FIELDS = [