Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lfkdsk committed Oct 12, 2018
1 parent 951cd50 commit f698894
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions yapypy/extended_python/emit_impl/simple_stmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,16 @@ def py_emit(node: ast.AnnAssign, ctx: Context):
>>> s : dict = dict()
>>> assert s is not None
>>> i : int
"""

byte_code: list = ctx.bc
target = node.target
value = node.value

if value is None:
return

# load value
py_emit(value, ctx)
# store target
Expand Down

0 comments on commit f698894

Please sign in to comment.