refactor icon indicating copy to clipboard operation
refactor copied to clipboard

InsertBefore fails with decorators

Open MementoRC opened this issue 2 years ago • 1 comments

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()"""

MementoRC avatar Jan 05 '23 23:01 MementoRC

This does not seem to be easily solved without pulling in PR: https://github.com/isidentical/refactor/pull/71

MementoRC avatar Jan 05 '23 23:01 MementoRC