sourcery
sourcery copied to clipboard
`collection-builtin-to-comprehension` creates invalid refactoring in the context of f-strings
x = f'''
text: {set(item ** 2 for item in d)}
'''
will become
x = f'''
text: {{item ** 2 for item in d}}
'''
Originally posted by @Karim-53 in https://github.com/sourcery-ai/sourcery/issues/325#issuecomment-1476955656