ikamensh / flynt

A tool to automatically convert old string literal formatting to f-strings
MIT License
689 stars 33 forks source link

Set line-limit argument type to int #180

Closed akash329d closed 1 year ago

akash329d commented 1 year ago

Manually set the line limit argument to int type. Was getting

File ".../process.py", line 130, in maybe_replace
    len(f"{converted}{rest}") <= self.len_limit - chunk.start_idx
TypeError: unsupported operand type(s) for -: 'str' and 'int'

Without this fix the line limit was being passed in as a string.

ikamensh commented 1 year ago

Thanks @akash329d !