websocket-client
websocket-client copied to clipboard
Inconsistent function return values
While fixing mypy errors, the following inconsistencies in function return values were found:
handleDisconnect()in _app.py is missing a return statementextract_error_code()in _utils.py is missing a return statement if the branching logic is not enteredread()in _app.py expects a return value fromtimeout()(which is declared in multiple locations)read()in _app.py expectsteardown()to return a bool_send()and_recv()in _socket.py only return a value if a logic branch is entered
The errors were detected using mypy websocket --no-strict-optional