Skip to content

Commit

Permalink
default_factoryで設定する
Browse files Browse the repository at this point in the history
  • Loading branch information
massongit committed Nov 5, 2022
1 parent 2cfe3d5 commit 39f2754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/hatomap.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def geocoords2pixel_list_ndarray(

@dataclass
class MapBox:
center: GeoCoord = GeoCoord(5, 40)
center: GeoCoord = field(default_factory=lambda: GeoCoord(5, 40))
zoom: int = 3
width: int = 800
height: int = 800
Expand Down

0 comments on commit 39f2754

Please sign in to comment.