Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically import when user shift+enter to use methods before actually importing #22329

Closed
TylerLeonhardt opened this issue Oct 24, 2023 · 3 comments
Labels
feature-request Request for new features or functionality

Comments

@TylerLeonhardt
Copy link
Member

Testing #22287

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.

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Oct 24, 2023
@anthonykim1 anthonykim1 changed the title Could imports be included? Automatically import when user shift+enter to use methods before actually importing Oct 24, 2023
@anthonykim1
Copy link

anthonykim1 commented Oct 24, 2023

Thank you for the idea! Will bring it up to the team.

@anthonykim1 anthonykim1 added the feature-request Request for new features or functionality label Oct 24, 2023
@anthonykim1 anthonykim1 removed their assignment Oct 24, 2023
@karthiknadig karthiknadig added needs community feedback Awaiting community feedback and removed triage-needed Needs assignment to the proper sub-team labels Oct 25, 2023
@github-actions
Copy link

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
Copy link
Member

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.

@brettcannon brettcannon closed this as not planned Won't fix, can't repro, duplicate, stale Jan 11, 2024
@github-actions github-actions bot removed the needs community feedback Awaiting community feedback label Jan 11, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants