Skip to content

Commit 2140a82

Browse files
committed
flake8 cleanup
1 parent a4b13f6 commit 2140a82

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

examples/bugs/issue_290/server.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ async def channel_response(payload: Payload, composite_metadata):
6161
publisher = ChannelPublisher()
6262
subscriber = ChannelSubscriber(publisher)
6363

64-
# WHY?: if passing received payload to ChannelSubscriber here can be processed before at ChannelPublisher "subscribe" method got subscriber
65-
# in other words - we do "one_next()", it will be processed with some logic and result can be published with "publish()"
64+
# WHY?: if passing received payload to ChannelSubscriber here can be processed
65+
# before at ChannelPublisher "subscribe" method got subscriber
66+
# in other words - we do "one_next()", it will be processed with some logic
67+
# and a result can be published with "publish()"
6668
# subscriber.on_next(payload)
6769

6870
return publisher, subscriber
@@ -88,7 +90,7 @@ async def websocket_handler(request):
8890
async def start_server():
8991
logging.basicConfig(level=logging.DEBUG)
9092

91-
print(f'Starting server at localhost: 7878')
93+
print('Starting server at localhost: 7878')
9294

9395
app = web.Application()
9496
app.add_routes(

rsocket/handlers/request_cahnnel_responder.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from rsocket.frame import Frame, RequestChannelFrame
22
from rsocket.handlers.request_cahnnel_common import RequestChannelCommon
3-
from rsocket.helpers import payload_from_frame
43

54

65
class RequestChannelResponder(RequestChannelCommon):

rsocket/transports/channels_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import asyncio
22
from contextlib import asynccontextmanager
3-
from typing import Optional, Dict, Any, Callable
3+
from typing import Optional, Callable
44

55
from channels.generic.websocket import AsyncWebsocketConsumer
66

0 commit comments

Comments
 (0)