Skip to content

Commit

Permalink
Remove isinstance check to work with uvloop transports
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatal1ty committed Mar 17, 2024
1 parent 525375a commit fb8ce1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aioapns/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ def __init__(self) -> None:
self.free_channels = ChannelPool(1000)

def connection_made(self, transport: asyncio.BaseTransport) -> None:
assert isinstance(transport, asyncio.Transport)
self.transport = transport
self.transport = transport # type: ignore
self.conn.initiate_connection()
self.flush()

Expand Down

0 comments on commit fb8ce1b

Please sign in to comment.