Skip to content

Commit

Permalink
fix type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
xoolive committed Feb 2, 2024
1 parent 329e4a9 commit 46b4841
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pyopensky/impala.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ class Impala(OpenSkyDBAPI):
For more information, find below the error and the buggy line:
"""

stdin: paramiko.ChannelFile # type: ignore
stdout: paramiko.ChannelFile # type: ignore
stderr: paramiko.ChannelFile # type: ignore
stdin: paramiko.ChannelFile
stdout: paramiko.ChannelFile
stderr: paramiko.ChannelFile
# actually ChannelStderrFile

def __init__(self, **kwargs: Any) -> None:
Expand Down Expand Up @@ -338,7 +338,7 @@ def _impala(
request = request.replace("\n", " ")
_log.info(request)

self.stdin.channel.send(request + ";\n")
self.stdin.channel.send((request + ";\n").encode())
# avoid messing lines in the cache file
time.sleep(0.1)
total = ""
Expand Down

0 comments on commit 46b4841

Please sign in to comment.