Skip to content

Commit 2e4abac

Browse files
committed
More lint
1 parent b79cadc commit 2e4abac

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import pytest
32
import time
43
import warnings

newsfragments/validate_files.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Towncrier silently ignores files that do not match the expected ending.
44
# We use this script to ensure we catch these as errors in CI.
55

6-
import os
76
import pathlib
87

98
ALLOWED_EXTENSIONS = {

web3/_utils/method_formatters.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
)
7474
from web3.types import (
7575
RPCEndpoint,
76-
RPCError,
7776
RPCResponse,
7877
TReturn,
7978
)

web3/providers/eth_tester/main.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,18 @@ def make_request(self, method: RPCEndpoint, params: Any) -> RPCResponse:
8787
try:
8888
delegator = self.api_endpoints[namespace][endpoint]
8989
except KeyError:
90-
return RPCResponse({"error":
91-
RPCError({"message": f"Unknown RPC Endpoint: {method}", "code": -32600}),
92-
})
93-
90+
return RPCResponse(
91+
{"error": RPCError({"message": f"Unknown RPC Endpoint: {method}", "code": -32600})}
92+
)
9493
try:
9594
response = delegator(self.ethereum_tester, params)
9695
except NotImplementedError:
97-
return RPCResponse({"error":
98-
RPCError({
96+
return RPCResponse(
97+
{"error": RPCError({
9998
"message": f"RPC Endpoint has not been implemented: {method}",
10099
"code": -32600,
101-
}),
102-
})
100+
})}
101+
)
103102
else:
104103
return {
105104
'result': response,

0 commit comments

Comments
 (0)