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

Bug: prettyprint() adds static variables as imports after generating code #3618

Open
AmineOzil opened this issue Sep 27, 2020 · 1 comment
Open

Comments

@AmineOzil
Copy link

AmineOzil commented Sep 27, 2020

The prettyprint() method always adds static variables as imports on classes where there are calls to these variables and deletes their class name on it specific calls on code. (see illustration)
image
SVGAbstractTranscoder.KEY_HEIGHT & SVGAbstractTranscoder.KEY_WIDTH are static variables

@AmineOzil AmineOzil changed the title prettyprint() adds static variables as imports after generating code Bug: prettyprint() adds static variables as imports after generating code Sep 27, 2020
@monperrus
Copy link
Collaborator

Thanks for the bug report. Would you be able to reproduce the bug in a failing test case?

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

No branches or pull requests

2 participants