Skip to content
This repository was archived by the owner on Aug 28, 2021. It is now read-only.

Commit bd649fe

Browse files
committed
remove what little typing there is
1 parent 7e3751f commit bd649fe

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

discord/ext/ipc/client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ class Client:
2424

2525
def __init__(
2626
self,
27-
host: str = "localhost",
28-
port: int = None,
29-
multicast_port: int = 20000,
30-
secret_key: typing.Union[str, bytes] = None,
27+
host="localhost",
28+
port=None,
29+
multicast_port=20000,
30+
secret_key=None
3131
):
3232
"""Constructor"""
3333
self.loop = asyncio.get_event_loop()
@@ -92,7 +92,7 @@ async def init_sock(self):
9292

9393
return self.websocket
9494

95-
async def request(self, endpoint: str, **kwargs):
95+
async def request(self, endpoint, **kwargs):
9696
"""Make a request to the IPC server process.
9797
9898
Parameters

discord/ext/ipc/server.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
log = logging.getLogger(__name__)
77

88

9-
def route(name: str = None):
9+
def route(name=None):
1010
"""
1111
Used to register a coroutine as an endpoint when you don't have
1212
access to an instance of :class:`.Server`
@@ -30,7 +30,7 @@ def decorator(func):
3030

3131

3232
class IpcServerResponse:
33-
def __init__(self, data: dict):
33+
def __init__(self, data):
3434
self._json = data
3535
self.length = len(data)
3636

@@ -75,11 +75,11 @@ class Server:
7575
def __init__(
7676
self,
7777
bot,
78-
host: str = "localhost",
79-
port: int = 8765,
80-
secret_key: str = None,
81-
do_multicast: bool = True,
82-
multicast_port: int = 20000,
78+
host="localhost",
79+
port=8765,
80+
secret_key=None,
81+
do_multicast=True,
82+
multicast_port=20000,
8383
):
8484
self.bot = bot
8585
self.loop = bot.loop
@@ -97,7 +97,7 @@ def __init__(
9797

9898
self.endpoints = {}
9999

100-
def route(self, name: str = None):
100+
def route(self, name=None):
101101
"""Used to register a coroutine as an endpoint when you have
102102
access to an instance of :class:`.Server`.
103103
@@ -123,7 +123,7 @@ def update_endpoints(self):
123123

124124
self.ROUTES = {}
125125

126-
async def handle_accept(self, request: aiohttp.web.Request):
126+
async def handle_accept(self, request):
127127
"""Handles websocket requests from the client process.
128128
129129
Parameters
@@ -206,7 +206,7 @@ async def handle_accept(self, request: aiohttp.web.Request):
206206

207207
raise JSONEncodeError(error_response)
208208

209-
async def handle_multicast(self, request: aiohttp.web.Request):
209+
async def handle_multicast(self, request):
210210
"""Handles multicasting websocket requests from the client.
211211
212212
Parameters

0 commit comments

Comments
 (0)