Skip to content

Commit 5da70ad

Browse files
committed
refactor: remove unnecessary noqa: E501 uses
1 parent 816e721 commit 5da70ad

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

web3/_utils/module_testing/module_testing_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async def json() -> Dict[str, str]:
132132

133133
@staticmethod
134134
def raise_for_status() -> None:
135-
raise Exception("called raise_for_status()") # noqa: E501, E704
135+
raise Exception("called raise_for_status()") # noqa: E704
136136

137137
async def _mock_specific_request(
138138
*args: Any, **kwargs: Any

web3/_utils/module_testing/web3_module.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,7 @@ class AsyncWeb3ModuleTest(Web3ModuleTest):
565565
# an asynchronous test should have the exact same name.
566566

567567
@pytest.mark.asyncio
568-
async def test_web3_client_version(
569-
self, async_w3: AsyncWeb3[Any]
570-
) -> None: # noqa: E501
568+
async def test_web3_client_version(self, async_w3: AsyncWeb3[Any]) -> None:
571569
client_version = await async_w3.client_version
572570
self._check_web3_client_version(client_version)
573571

@@ -643,7 +641,7 @@ async def test_batch_requests(
643641
async def test_batch_requests_initialized_as_object(
644642
self,
645643
async_w3: AsyncWeb3[Any],
646-
async_math_contract: "AsyncContract", # noqa: E501
644+
async_math_contract: "AsyncContract",
647645
) -> None:
648646
batch = async_w3.batch_requests()
649647
batch.add(async_w3.eth.get_block(1))
@@ -690,9 +688,7 @@ async def test_batch_requests_initialized_as_object(
690688
assert cast(BlockData, b4)["number"] == 4
691689

692690
@pytest.mark.asyncio
693-
async def test_batch_requests_clear(
694-
self, async_w3: AsyncWeb3[Any]
695-
) -> None: # noqa: E501
691+
async def test_batch_requests_clear(self, async_w3: AsyncWeb3[Any]) -> None:
696692
async with async_w3.batch_requests() as batch:
697693
batch.add(async_w3.eth.get_block(1))
698694
batch.add(async_w3.eth.get_block(2))

web3/providers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def batch_request_func(
194194
# which breaks the type hinting for this particular case.
195195
accumulator_fn = initialized.wrap_make_batch_request(
196196
accumulator_fn
197-
) # type: ignore # noqa: E501
197+
) # type: ignore
198198
self._batch_request_func_cache = (middleware, accumulator_fn)
199199

200200
return self._batch_request_func_cache[-1]

0 commit comments

Comments
 (0)