enzet / map-machine

Python renderer for OpenStreetMap with custom icons intended to display as many map features as possible
MIT License
503 stars 31 forks source link

fixing mutable dataclass attribute error by using default_factory #154

Closed phillies closed 1 year ago

phillies commented 1 year ago

Fix for https://github.com/enzet/map-machine/issues/153 where due to changes in python 3.11 (https://docs.python.org/3/whatsnew/3.11.html#dataclasses) mutable fields are no longer allowed and need the default_factory argument.

enzet commented 1 year ago

Hello, @phillies! Thank you, this was really a shameful mistake.

I hope you don't mind very much that I have merged the commit manually and changed commit message to match the style.

I'm closing the request, but the commit is in the repository already.