Skip to content

Commit

Permalink
use _BytestringT
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed May 8, 2023
1 parent a0cc9a6 commit d2f4d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/builtins/_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def _literal_decimal(expr, arg_typ, out_typ):
def to_bool(expr, arg, out_typ):
_check_bytes(expr, arg, out_typ, 32) # should we restrict to Bytes[1]?

if isinstance(arg.typ, (BytesT, StringT)):
if isinstance(arg.typ, _BytestringT):
# no clamp. checks for any nonzero bytes.
arg = _bytes_to_num(arg, out_typ, signed=False)

Expand Down

0 comments on commit d2f4d08

Please sign in to comment.