79682039

Date: 2025-06-27 13:43:44
Score: 0.5
Natty:
Report link

I call it SqlTuple, because it helped me get around using IN operator for raw SQL-queries

class SqlTuple(tuple):
    def __repr__(self) -> str:
        return f'({", ".join(map(repr, self))})'

a = SqlTuple((1,))
print(a) # (1)
b = SqlTuple([1, 2])
print(b) # (1, 2)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: theemee