([1,])
That's not a tuple. That's just [1,]
in grouping parentheses. If you want a 1-element tuple, you need to put a comma in it like so, to distinguish it from just a parenthesized expression:
([1,],)
I suspect you may have misplaced the comma, and you meant to do this:
([1],)