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

Assignment to env var in Jupyter Notebook doesn't round-trip #2642

Merged
merged 3 commits into from Nov 26, 2021

Conversation

MarcoGorelli
Copy link
Contributor

@MarcoGorelli MarcoGorelli commented Nov 25, 2021

Description

Checklist - did you ...

  • Add a CHANGELOG entry if necessary?
  • Add / update tests if necessary?

closes #2641

@MarcoGorelli MarcoGorelli changed the title fix assignment to env var Assignment to env var in Jupyter Notebook doesn't round-trip Nov 25, 2021
elif node.value.func.attr == "run_line_magic":
src = f"%{args[0]}"
if args[1]:
assert src is not None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does mypy need this? It's assigned to a str just above.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, it's not necessary - thanks!

@JelleZijlstra JelleZijlstra merged commit e025308 into psf:main Nov 26, 2021
@MarcoGorelli MarcoGorelli deleted the assign-to-env-var branch November 26, 2021 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assignment to env var in Jupyter Notebook doesn't round-trip
2 participants