diff --git a/ibis/backends/mysql/compiler.py b/ibis/backends/mysql/compiler.py index c0562114ab6c..66e791266c63 100644 --- a/ibis/backends/mysql/compiler.py +++ b/ibis/backends/mysql/compiler.py @@ -276,7 +276,9 @@ def visit_StringFind(self, op, *, arg, substr, start, end): def visit_LRStrip(self, op, *, arg, position): return reduce( - lambda arg, char: self.f.trim(this=arg, position=self.v[position], expression=char), + lambda arg, char: self.f.trim( + this=arg, position=self.v[position], expression=char + ), map( partial(self.cast, to=dt.string), map(self.f.unhex, map(self.f.hex, string.whitespace.encode())),