Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
valrus committed Aug 17, 2024
1 parent 1c699f7 commit eec1388
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pylsp_jsonrpc/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ def __init__(self, wfile, **json_dumps_args):
self._wfile_lock = threading.Lock()

if 'orjson' in sys.modules and json_dumps_args.pop('sort_keys'):
# orjson needs different option handling
self._json_dumps_args = {'option': json.OPT_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.update(**json_dumps_args)
else:
self._json_dumps_args = json_dumps_args
Expand Down
2 changes: 1 addition & 1 deletion test/test_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import datetime
import sys
from unittest import mock
import pytest
import json
import pytest

from pylsp_jsonrpc.streams import JsonRpcStreamReader, JsonRpcStreamWriter

Expand Down

0 comments on commit eec1388

Please sign in to comment.