Skip to content

Commit

Permalink
ignore the const token
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Jan 16, 2025
1 parent cbd855f commit 5836b12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/uproot/interpretation/identify.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,8 @@ def _parse_node(tokens, i, typename, file, quote, header, inner_header):
if tokens[i].group(0) == ",":
_parse_error(tokens[i].start() + 1, typename, file)

elif tokens[i].group(0) == "const":
return _parse_node(tokens, i + 1, typename, file, quote, header, inner_header)
elif tokens[i].group(0) == "Bool_t":
return i + 1, _parse_maybe_quote('numpy.dtype("?")', quote)
elif tokens[i].group(0) == "bool":
Expand Down

0 comments on commit 5836b12

Please sign in to comment.