Skip to content

Commit b13269a

Browse files
committed
lint fix
1 parent 4db0f65 commit b13269a

30 files changed

+91
-86
lines changed

tests/berlin/test_evm_tools.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from functools import partial
2-
from typing import Dict
2+
from typing import Any, Dict
33

44
import pytest
55

@@ -36,7 +36,7 @@
3636
"ABAcalls2",
3737
"CallRecursiveBomb0",
3838
"CallRecursiveBomb1",
39-
"CallRecursiveBombLog"
39+
"CallRecursiveBombLog",
4040
)
4141

4242

@@ -52,7 +52,8 @@
5252
fork_name=FORK_NAME,
5353
)
5454

55-
def is_angry_mutant(test_case):
55+
56+
def is_angry_mutant(test_case: Any) -> bool:
5657
return any(case in str(test_case) for case in ANGRY_MUTANT_CASES)
5758

5859

tests/berlin/test_state_transition.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from functools import partial
2-
from typing import Dict
2+
from typing import Any, Dict
33

44
import pytest
55

@@ -73,7 +73,7 @@
7373
"CallRecursiveBomb0",
7474
"ABAcalls1",
7575
"CallRecursiveBomb2",
76-
"CallRecursiveBombLog"
76+
"CallRecursiveBombLog",
7777
)
7878

7979
# Define Tests
@@ -90,7 +90,7 @@
9090
run_tests = partial(run_blockchain_st_test, load=FIXTURES_LOADER)
9191

9292

93-
def is_angry_mutant(test_case):
93+
def is_angry_mutant(test_case: Any) -> bool:
9494
return any(case in str(test_case) for case in ANGRY_MUTANT_CASES)
9595

9696

tests/byzantium/test_evm_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from functools import partial
2-
from typing import Dict
2+
from typing import Any, Dict
33

44
import pytest
55

@@ -30,7 +30,7 @@
3030
"ABAcalls2",
3131
"CallRecursiveBomb0",
3232
"CallRecursiveBomb1",
33-
"CallRecursiveBombLog"
33+
"CallRecursiveBombLog",
3434
)
3535

3636
# Define tests
@@ -46,7 +46,7 @@
4646
)
4747

4848

49-
def is_angry_mutant(test_case):
49+
def is_angry_mutant(test_case: Any) -> bool:
5050
return any(case in str(test_case) for case in ANGRY_MUTANT_CASES)
5151

5252

tests/byzantium/test_state_transition.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from functools import partial
2-
from typing import Dict
2+
from typing import Any, Dict
33

44
import pytest
55

@@ -67,7 +67,7 @@
6767
"CallRecursiveBomb0",
6868
"ABAcalls1",
6969
"CallRecursiveBomb2",
70-
"CallRecursiveBombLog"
70+
"CallRecursiveBombLog",
7171
)
7272

7373
# Define Tests
@@ -84,7 +84,7 @@
8484
run_tests = partial(run_blockchain_st_test, load=FIXTURES_LOADER)
8585

8686

87-
def is_angry_mutant(test_case):
87+
def is_angry_mutant(test_case: Any) -> bool:
8888
return any(case in str(test_case) for case in ANGRY_MUTANT_CASES)
8989

9090

tests/cancun/test_evm_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from functools import partial
2-
from typing import Dict
2+
from typing import Any, Dict
33

44
import pytest
55

@@ -32,7 +32,7 @@
3232
"ABAcalls2",
3333
"CallRecursiveBomb0",
3434
"CallRecursiveBomb1",
35-
"CallRecursiveBombLog"
35+
"CallRecursiveBombLog",
3636
)
3737

3838
# Define tests
@@ -48,7 +48,7 @@
4848
)
4949

5050

51-
def is_angry_mutant(test_case):
51+
def is_angry_mutant(test_case: Any) -> bool:
5252
return any(case in str(test_case) for case in ANGRY_MUTANT_CASES)
5353

5454

tests/cancun/test_state_transition.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from functools import partial
2-
from typing import Dict
2+
from typing import Any, Dict
33

44
import pytest
55

@@ -73,7 +73,7 @@
7373
"CallRecursiveBomb0",
7474
"ABAcalls1",
7575
"CallRecursiveBomb2",
76-
"CallRecursiveBombLog"
76+
"CallRecursiveBombLog",
7777
)
7878

7979
# Define Tests
@@ -90,7 +90,7 @@
9090
run_tests = partial(run_blockchain_st_test, load=FIXTURES_LOADER)
9191

9292

93-
def is_angry_mutant(test_case):
93+
def is_angry_mutant(test_case: Any) -> bool:
9494
return any(case in str(test_case) for case in ANGRY_MUTANT_CASES)
9595

9696

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import os
22
import shutil
33
import tarfile
4-
import pytest
54
from pathlib import Path
65
from typing import Final, Optional, Set
76

87
import git
8+
import pytest
99
import requests_cache
1010
from _pytest.config import Config
1111
from _pytest.config.argparsing import Parser
@@ -230,6 +230,6 @@ def pytest_sessionfinish(
230230
# This is required explicitly becuase when the source does not have any
231231
# mutable code, mutmut does not run the forced fail condition.
232232
@pytest.fixture(autouse=True)
233-
def mutmut_forced_fail():
233+
def mutmut_forced_fail() -> None:
234234
if os.environ.get("MUTANT_UNDER_TEST") == "fail":
235235
pytest.fail("Forced fail for mutmut sanity check")

tests/constantinople/test_evm_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from functools import partial
2-
from typing import Dict
2+
from typing import Any, Dict
33

44
import pytest
55

@@ -30,7 +30,7 @@
3030
"ABAcalls2",
3131
"CallRecursiveBomb0",
3232
"CallRecursiveBomb1",
33-
"CallRecursiveBombLog"
33+
"CallRecursiveBombLog",
3434
)
3535

3636
# Define tests
@@ -46,7 +46,7 @@
4646
)
4747

4848

49-
def is_angry_mutant(test_case):
49+
def is_angry_mutant(test_case: Any) -> bool:
5050
return any(case in str(test_case) for case in ANGRY_MUTANT_CASES)
5151

5252

tests/constantinople/test_state_transition.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from functools import partial
2-
from typing import Dict
2+
from typing import Any, Dict
33

44
import pytest
55

@@ -68,7 +68,7 @@
6868
"CallRecursiveBomb0",
6969
"ABAcalls1",
7070
"CallRecursiveBomb2",
71-
"CallRecursiveBombLog"
71+
"CallRecursiveBombLog",
7272
)
7373

7474
# Define Tests
@@ -85,7 +85,7 @@
8585
run_tests = partial(run_blockchain_st_test, load=FIXTURES_LOADER)
8686

8787

88-
def is_angry_mutant(test_case):
88+
def is_angry_mutant(test_case: Any) -> bool:
8989
return any(case in str(test_case) for case in ANGRY_MUTANT_CASES)
9090

9191

tests/frontier/test_evm_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from functools import partial
2-
from typing import Dict
2+
from typing import Any, Dict
33

44
import pytest
55

@@ -29,7 +29,7 @@
2929
"ABAcalls2",
3030
"CallRecursiveBomb0",
3131
"CallRecursiveBomb1",
32-
"CallRecursiveBombLog"
32+
"CallRecursiveBombLog",
3333
)
3434

3535
# Define tests
@@ -45,7 +45,7 @@
4545
)
4646

4747

48-
def is_angry_mutant(test_case):
48+
def is_angry_mutant(test_case: Any) -> bool:
4949
return any(case in str(test_case) for case in ANGRY_MUTANT_CASES)
5050

5151

0 commit comments

Comments
 (0)