Skip to content

Bugfix: module 'ast' has no attribute 'unparse'#30

Merged
pixelneo merged 3 commits intopixelneo:masterfrom
joeyism:master
Oct 31, 2022
Merged

Bugfix: module 'ast' has no attribute 'unparse'#30
pixelneo merged 3 commits intopixelneo:masterfrom
joeyism:master

Conversation

@joeyism
Copy link
Contributor

@joeyism joeyism commented Oct 24, 2022

This is to fix issue #24 .

For python < 3.9, so following the stackoverflow comments here, I added unparse.py which unparses manually for python version < 3.9.

@pixelneo
Copy link
Owner

pixelneo commented Oct 27, 2022

Hello, thank you for your this.

I don't quite understand it isn't working (on Python < 3.9), because the plugin is a few years old, I have definitely used it with python < 3.9. EDIT: I see, it's the type hints 🤦
Also, I am not yet sure about merging a whole module from the standard library (if there is better way it would be preferable), but I am not ruling it out.

@pixelneo
Copy link
Owner

Ok, seems this is the way. Thank you!

@pixelneo pixelneo merged commit 775b0ef into pixelneo:master Oct 31, 2022
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.

2 participants