5

Is there a way to automatically add imports to python code within emacs?

def f(x: str) -> List[str]:

I want to be able to have my guess over "List" press a key binding and magically add List to my imports.

I had a brief look on github, didn't find much. I found a package called importless-lang that was a partial implementation of this idea, and started adpting this by it seemed like a reasonable amount of work.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.