Skip to content

Commit 28ed984

Browse files
committed
add return value types
1 parent 18ac917 commit 28ed984

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_pyth_account.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_product_account_update_with_rpc_response_with_data(
6161
solana_client: SolanaClient,
6262
product_account: PythProductAccount,
6363
product_account_b64: str
64-
):
64+
) -> None:
6565
actual = PythProductAccount(
6666
key=product_account.key,
6767
solana=solana_client,
@@ -90,7 +90,7 @@ def test_pyth_account_update_with_rpc_response_wrong_type(
9090
pyth_account: PythAccount,
9191
caplog: LogCaptureFixture,
9292
product_account_b64: str
93-
):
93+
) -> None:
9494
slot = 96866600
9595
value = {
9696
'lamports': 1000000000,
@@ -108,7 +108,7 @@ def test_pyth_account_update_with_rpc_response_wrong_type(
108108
def test_pyth_account_update_with_rpc_response_no_data(
109109
pyth_account: PythAccount,
110110
caplog: LogCaptureFixture
111-
):
111+
) -> None:
112112
slot = 106498726
113113
value = {
114114
"lamports": 1000000000

tests/test_pyth_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def mock_get_program_accounts(mocker: MockerFixture) -> AsyncMock:
261261
return async_mock
262262

263263

264-
def test_products_property_not_loaded(pyth_client: PythClient):
264+
def test_products_property_not_loaded(pyth_client: PythClient) -> None:
265265
with pytest.raises(NotLoadedException):
266266
pyth_client.products
267267

0 commit comments

Comments
 (0)