@@ -1346,8 +1346,7 @@ async def call(
1346
1346
self ._return_data_normalizers ,
1347
1347
self .function_identifier ,
1348
1348
call_transaction ,
1349
- # BlockIdentifier does have an Awaitable type in types.py
1350
- block_id , # type: ignore
1349
+ block_id ,
1351
1350
self .contract_abi ,
1352
1351
self .abi ,
1353
1352
state_override ,
@@ -2193,13 +2192,13 @@ def parse_block_identifier(
2193
2192
2194
2193
async def async_parse_block_identifier (
2195
2194
w3 : "Web3" , block_identifier : BlockIdentifier
2196
- ) -> Awaitable [ BlockIdentifier ] :
2195
+ ) -> BlockIdentifier :
2197
2196
if block_identifier is None :
2198
2197
return w3 .eth .default_block
2199
2198
if isinstance (block_identifier , int ):
2200
2199
return await async_parse_block_identifier_int (w3 , block_identifier )
2201
2200
elif block_identifier in {"latest" , "earliest" , "pending" , "safe" , "finalized" }:
2202
- return block_identifier # type: ignore
2201
+ return block_identifier
2203
2202
elif isinstance (block_identifier , bytes ) or is_hex_encoded_block_hash (
2204
2203
block_identifier
2205
2204
):
@@ -2222,7 +2221,7 @@ def parse_block_identifier_int(w3: "Web3", block_identifier_int: int) -> BlockNu
2222
2221
2223
2222
async def async_parse_block_identifier_int (
2224
2223
w3 : "Web3" , block_identifier_int : int
2225
- ) -> Awaitable [ BlockNumber ] :
2224
+ ) -> BlockNumber :
2226
2225
if block_identifier_int >= 0 :
2227
2226
block_num = block_identifier_int
2228
2227
else :
@@ -2231,7 +2230,7 @@ async def async_parse_block_identifier_int(
2231
2230
block_num = last_block_num + block_identifier_int + 1
2232
2231
if block_num < 0 :
2233
2232
raise BlockNumberOutofRange
2234
- return BlockNumber (block_num ) # type: ignore
2233
+ return BlockNumber (block_num )
2235
2234
2236
2235
2237
2236
def transact_with_contract_function (
0 commit comments