You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Automatically import when user shift+enter to use methods before actually importing #22329
import string
for letter in string.ascii_lowercase[::-1]:
print(letter)
If I haven't shift+enter on import string yet and I go to shift+enter on the for loop, I get:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'string' is not defined
which makes sense based on the TPI... however, as a suspect some folks may have large files with many imports at the top, it'd be nice if those imports were automatically run.
changed the title [-]Could imports be included?[/-][+]Automatically import when user shift+enter to use methods before actually importing[/+]on Oct 24, 2023
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.
Thank you for submitting your feature request and everyone who considered it! Unfortunately, this issue did not receive enough votes over the allotted time, and so we are closing the issue.
Activity
[-]Could imports be included?[/-][+]Automatically import when user shift+enter to use methods before actually importing[/+]anthonykim1 commentedon Oct 24, 2023
Thank you for the idea! Will bring it up to the team.
github-actions commentedon Oct 25, 2023
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.
brettcannon commentedon Jan 11, 2024
Thank you for submitting your feature request and everyone who considered it! Unfortunately, this issue did not receive enough votes over the allotted time, and so we are closing the issue.