refactor
refactor copied to clipboard
InsertBefore fails with decorators
The decorators are not pulled-in with the definition:
INPUT_SOURCE = """
@decorate
def test():
test_this()"""
EXPECTED_SOURCE = """
await async_test()
@decorate
def test():
test_this()"""
ACTUAL_SOURCE = """
@decorate
await async_test()
def test():
test_this()"""
This does not seem to be easily solved without pulling in PR: https://github.com/isidentical/refactor/pull/71