Skip to content

Commit 558215b

Browse files
committed
Fixes to satisfy ruff
1 parent f4e8761 commit 558215b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

jsonrpcserver/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
notifications).
1111
"""
1212
from importlib.resources import read_text
13-
from typing import Any, Callable, Dict, List, Optional, Union, cast
13+
from typing import Any, Callable, Dict, List, Union, cast
1414
import json
1515

1616
from jsonschema.validators import validator_for # type: ignore

jsonrpcserver/result.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ class ErrorResult(NamedTuple):
2929
data: Any = NODATA # The spec says this value may be omitted
3030

3131
def __repr__(self) -> str:
32-
return f"ErrorResult(code={self.code!r}, message={self.message!r}, data={self.data!r})"
32+
return (
33+
f"ErrorResult(code={self.code!r}, message={self.message!r}, "
34+
"data={self.data!r})"
35+
)
3336

3437

3538
Result = R[SuccessResult, ErrorResult]

0 commit comments

Comments
 (0)