Skip to content

Commit

Permalink
[types] Fix annotation from last commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Chu committed Apr 23, 2020
1 parent ee80ef0 commit f31a52f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/osh_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ def main(argv):
arith_ev.word_ev = word_ev
word_ev.arith_ev = arith_ev

test_ev = TestEvaluator(arith_ev, word_ev)
test_ev.Eval(node)
#test_ev = TestEvaluator(arith_ev, word_ev)
#test_ev.Eval(node)

procs = {} # type: Dict[str, command__ShFunction]

Expand Down
2 changes: 1 addition & 1 deletion osh/word_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ def _DecayArray(self, val):
return value.Str(sep.join(tmp))

def _BashArrayCompat(self, val):
# type: (value_t) -> value__Str
# type: (value_t) -> value_t
"""Decay ${array} to ${array[0]}."""
if val.tag_() == value_e.MaybeStrArray:
array_val = cast(value__MaybeStrArray, val)
Expand Down

0 comments on commit f31a52f

Please sign in to comment.