Skip to content

Commit

Permalink
add'l lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
valrus committed Aug 17, 2024
1 parent eec1388 commit da25952
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pylsp_jsonrpc/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(self, wfile, **json_dumps_args):
if 'orjson' in sys.modules and json_dumps_args.pop('sort_keys'):
# orjson needs different option handling;
# pylint has an erroneous error here https://github.com/pylint-dev/pylint/issues/9762
self._json_dumps_args = {'option': json.OPT_SORT_KEYS} # pylint: disable=maybe-no-member
self._json_dumps_args = {'option': json.OPT_SORT_KEYS} # pylint: disable=maybe-no-member
self._json_dumps_args.update(**json_dumps_args)
else:
self._json_dumps_args = json_dumps_args
Expand Down
1 change: 1 addition & 0 deletions test/test_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def reader(rfile):
def writer(wfile):
return JsonRpcStreamWriter(wfile, sort_keys=True)


def test_reader(rfile, reader):
rfile.write(
b'Content-Length: 49\r\n'
Expand Down

0 comments on commit da25952

Please sign in to comment.