Skip to content

Commit

Permalink
Add types for functions called by other modules (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
aqk authored Feb 16, 2024
1 parent ecea68b commit b78d414
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clvm_tools/binutils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import string
from typing import Dict

from clvm import KEYWORD_FROM_ATOM, KEYWORD_TO_ATOM
from clvm import KEYWORD_FROM_ATOM, KEYWORD_TO_ATOM, SExp
from clvm.casts import int_from_bytes, int_to_bytes
from clvm.SExp import SExp

Expand Down Expand Up @@ -95,6 +96,6 @@ def disassemble(sexp: SExp, keyword_from_atom: Dict[bytes, str] = KEYWORD_FROM_A
return write_ir(symbols)


def assemble(s):
def assemble(s: str) -> SExp:
symbols = read_ir(s)
return assemble_from_ir(symbols)

0 comments on commit b78d414

Please sign in to comment.