Skip to content

Commit 41a5919

Browse files
committed
Lint
1 parent 1bd87e2 commit 41a5919

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

tests/core/contracts/test_contract_call_interface.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,11 @@ def test_call_address_reflector_name_array(address_reflector_contract, call):
494494
def test_call_reject_invalid_ens_name(address_reflector_contract, call):
495495
with contract_ens_addresses(address_reflector_contract, []):
496496
with pytest.raises(NameNotFound):
497-
call(contract=address_reflector_contract,
498-
contract_function='reflect',
499-
func_args=['type0.eth'])
497+
call(
498+
contract=address_reflector_contract,
499+
contract_function="reflect",
500+
func_args=["type0.eth"],
501+
)
500502

501503

502504
def test_call_missing_function(mismatched_math_contract, call):

tests/core/eth-module/test_eth_contract.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
((BYTES_ADDRESS,), {}, None),
2626
((INVALID_CHECKSUM_ADDRESS,), {}, InvalidAddress),
2727
((NON_CHECKSUM_ADDRESS,), {}, InvalidAddress),
28-
((), {'address': ADDRESS}, None),
29-
((), {'address': INVALID_CHECKSUM_ADDRESS}, InvalidAddress),
30-
((), {'address': NON_CHECKSUM_ADDRESS}, InvalidAddress),
31-
)
28+
((), {"address": ADDRESS}, None),
29+
((), {"address": INVALID_CHECKSUM_ADDRESS}, InvalidAddress),
30+
((), {"address": NON_CHECKSUM_ADDRESS}, InvalidAddress),
31+
),
3232
)
3333
def test_contract_address_validation(w3, args, kwargs, expected):
3434
if isinstance(expected, type) and issubclass(expected, Exception):

web3/exceptions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,15 @@ class LogTopicError(Web3Exception):
245245
"""
246246
Raised when the number of log topics is mismatched.
247247
"""
248+
248249
pass
249250

250251

251252
class InvalidEventABI(Web3Exception):
252253
"""
253254
Raised when the event ABI is invalid.
254255
"""
256+
255257
pass
256258

257259

@@ -275,6 +277,7 @@ class InvalidParityMode(Web3Exception):
275277
"""
276278
Raised when web3.parity.set_mode() is called with no or invalid args
277279
"""
280+
278281
pass
279282

280283

@@ -302,4 +305,5 @@ class BadResponseFormat(Web3Exception):
302305
"""
303306
Raised when a JSON-RPC response comes back in an unexpected format
304307
"""
308+
305309
pass

0 commit comments

Comments
 (0)