Skip to content

Commit f3b721c

Browse files
committed
Annotate return value to allow async function
1 parent 8fdbc19 commit f3b721c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

async_substrate_interface/protocols.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Protocol, Union, Optional
1+
from typing import Awaitable, Protocol, Union, Optional
22

33

44
__all__: list[str] = [
@@ -39,5 +39,5 @@ def ss58_address(self) -> str:
3939
def ss58_format(self) -> int:
4040
...
4141

42-
def sign(self, data: Union[bytes, str]) -> bytes:
42+
def sign(self, data: Union[bytes, str]) -> Union[bytes, Awaitable[bytes]]:
4343
...

0 commit comments

Comments
 (0)