Mypy error
This commit is contained in:
parent
bb019d1416
commit
2a9f28793c
1 changed files with 3 additions and 1 deletions
|
@ -228,11 +228,13 @@ class AternosWss:
|
|||
logging.warning('Did you forget to call socket.connect?')
|
||||
await self.connect()
|
||||
|
||||
assert self.socket is not None
|
||||
|
||||
if isinstance(obj, dict):
|
||||
obj = json.dumps(obj)
|
||||
|
||||
await self.socket.send(obj)
|
||||
|
||||
|
||||
async def command(self, cmd: str) -> None:
|
||||
|
||||
"""Sends a Minecraft command
|
||||
|
|
Reference in a new issue