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

Remove _env instance attribute from Element #145

Merged

Conversation

Conengmo
Copy link
Member

Same like in python-visualization/folium#1817, remove the environment saved as class instance attribute on Element.

I suspect this was added early on because they expected we would load templates from the filesystem. Instead we now make templates dynamically from strings. So there's no need to store this on class instances. If somebody still wants to use it, we still have ENV as module variable available.

Copy link
Collaborator

@martinfleis martinfleis left a comment

Choose a reason for hiding this comment

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

Thanks!

@Conengmo Conengmo merged commit 4f79f24 into python-visualization:main Nov 20, 2023
11 checks passed
@Conengmo
Copy link
Member Author

Almost forgot about this one :p thanks for the review Martin!

@Conengmo Conengmo deleted the remove-env-instance-attribute branch November 20, 2023 15:53
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.

None yet

2 participants