Skip to content

Commit 7a9e9fa

Browse files
authored
[LABS-156] Remove unnecessary Streamable hint (#20227)
Remove unnecessary `Streamable` hint
1 parent 599cff3 commit 7a9e9fa

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

chia/wallet/vc_wallet/vc_wallet.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from chia.types.coin_spend import make_spend
1717
from chia.util.casts import int_to_bytes
1818
from chia.util.hash import std_hash
19-
from chia.util.streamable import Streamable
2019
from chia.wallet.conditions import (
2120
AssertCoinAnnouncement,
2221
Condition,
@@ -95,9 +94,7 @@ def type(cls) -> WalletType:
9594
def id(self) -> uint32:
9695
return self.wallet_info.id
9796

98-
async def coin_added(
99-
self, coin: Coin, height: uint32, peer: WSChiaConnection, coin_data: Optional[Streamable]
100-
) -> None:
97+
async def coin_added(self, coin: Coin, height: uint32, peer: WSChiaConnection, coin_data: Optional[object]) -> None:
10198
"""
10299
An unspent coin has arrived to our wallet. Get the parent spend to construct the current VerifiedCredential
103100
representation of the coin and add it to the DB if it's the newest version of the singleton.

chia/wallet/wallet.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from chia.types.coin_spend import make_spend
1515
from chia.types.signing_mode import CHIP_0002_SIGN_MESSAGE_PREFIX, SigningMode
1616
from chia.util.hash import std_hash
17-
from chia.util.streamable import Streamable
1817
from chia.wallet.coin_selection import select_coins
1918
from chia.wallet.conditions import (
2019
AssertCoinAnnouncement,
@@ -481,9 +480,7 @@ async def get_coins_to_offer(
481480
return await self.select_coins(amount, sandbox)
482481

483482
# WSChiaConnection is only imported for type checking
484-
async def coin_added(
485-
self, coin: Coin, height: uint32, peer: WSChiaConnection, coin_data: Optional[Streamable]
486-
) -> None:
483+
async def coin_added(self, coin: Coin, height: uint32, peer: WSChiaConnection, coin_data: Optional[object]) -> None:
487484
pass
488485

489486
def get_name(self) -> str:

chia/wallet/wallet_state_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2168,7 +2168,7 @@ async def coin_added(
21682168
wallet_type: WalletType,
21692169
peer: WSChiaConnection,
21702170
coin_name: bytes32,
2171-
coin_data: Optional[Streamable],
2171+
coin_data: Optional[object],
21722172
) -> None:
21732173
"""
21742174
Adding coin to DB

0 commit comments

Comments
 (0)