more lint

This commit is contained in:
Danglewood
2024-12-08 20:35:22 -08:00
parent 31bda8e46b
commit 9fd137c1d2
2 changed files with 12 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ async def read_stdin(broadcast_server):
async def websocket_endpoint( # noqa: PLR0915
websocket: WebSocket, auth_token: Optional[str] = None
):
"""WebSocket endpoint."""
"""Connect to the broadcast server."""
broadcast_server = BroadcastServer(
RESULTS_FILE,

View File

@@ -46,6 +46,8 @@ HEADER_CLIENT_INFORMATION_VALUE = "IntrinioPythonSDKv5.3.0"
class Quote:
"""Intrinio Realtime Stocks Quote."""
def __init__(
self,
symbol,
@@ -57,6 +59,7 @@ class Quote:
market_center,
condition,
):
"""Initialize the Quote object."""
self.symbol = symbol
self.type = type
self.price = price
@@ -66,8 +69,6 @@ class Quote:
self.market_center = market_center
self.condition = condition
"""Intrinio Realtime Stocks Client."""
def __str__(self):
"""Return string representation of the quote."""
return (
@@ -90,6 +91,8 @@ class Quote:
class Trade:
"""Intrinio Realtime Stocks Trade."""
def __init__(
self,
symbol,
@@ -139,6 +142,8 @@ class Trade:
class IntrinioRealtimeClient:
"""Intrinio Realtime Stocks Client."""
def __init__(
self,
options: Dict[str, Any],
@@ -419,6 +424,8 @@ class IntrinioRealtimeClient:
class QuoteReceiver(threading.Thread):
"""Intrinio Realtime Stocks Quote Receiver."""
def __init__(self, client):
"""Initialize the QuoteReceiver."""
threading.Thread.__init__(self, args=(), kwargs=None)
@@ -498,6 +505,8 @@ class QuoteReceiver(threading.Thread):
class QuoteHandler(threading.Thread):
"""Intrinio Realtime Stocks Quote Handler."""
def __init__(self, client, bypass_parsing: bool):
"""Initialize the QuoteHandler."""
threading.Thread.__init__(self, args=(), kwargs=None)