Skip to content

Commit fd4d341

Browse files
feat(tests): fix type error complaints
1 parent 6a2b075 commit fd4d341

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ethereum_test_forks/forks/forks.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -370,12 +370,12 @@ def evm_code_types(cls, block_number: int = 0, timestamp: int = 0) -> List[EVMCo
370370
return [EVMCodeType.LEGACY]
371371

372372
@classmethod
373-
def max_code_size(cls) -> None:
373+
def max_code_size(cls) -> int | None:
374374
"""At genesis, there is no upper bound for code size (bounded by block gas limit)."""
375375
return None
376376

377377
@classmethod
378-
def max_initcode_size(cls) -> None:
378+
def max_initcode_size(cls) -> int | None:
379379
"""At genesis, there is no upper bound for initcode size (bounded by block gas limit)."""
380380
return None
381381

@@ -645,7 +645,7 @@ def precompiles(cls, block_number: int = 0, timestamp: int = 0) -> List[Address]
645645
)
646646

647647
@classmethod
648-
def max_code_size(cls) -> int:
648+
def max_code_size(cls) -> int | None:
649649
# NOTE: Move this to Spurious Dragon once this fork is introduced. See EIP-170.
650650
"""At Spurious Dragon, an upper bound was introduced for max contract code size."""
651651
return 0x6000
@@ -877,7 +877,7 @@ def engine_new_payload_version(
877877
return 2
878878

879879
@classmethod
880-
def max_initcode_size(cls) -> int:
880+
def max_initcode_size(cls) -> int | None:
881881
"""From Shanghai, the initcode size is now limited. See EIP-3860."""
882882
return int(0xC000)
883883

@@ -1339,12 +1339,12 @@ def engine_get_blobs_version(cls, block_number: int = 0, timestamp: int = 0) ->
13391339
return 2
13401340

13411341
@classmethod
1342-
def max_code_size(cls) -> int:
1342+
def max_code_size(cls) -> int | None:
13431343
"""From Osaka, the max code size is lifted. See EIP-7907."""
13441344
return int(0x40000)
13451345

13461346
@classmethod
1347-
def max_initcode_size(cls) -> int:
1347+
def max_initcode_size(cls) -> int | None:
13481348
"""At genesis, there is no upper bound for initcode size (bounded by block gas limit)."""
13491349
return int(0x80000)
13501350

0 commit comments

Comments
 (0)