Skip to content

Commit

Permalink
use default factory in dataclass
Browse files Browse the repository at this point in the history
  • Loading branch information
true-real-michael committed Nov 14, 2023
1 parent bce6d17 commit a8016f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octreelib/grid/grid_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class GridConfigBase(ABC):
corner: corner of a grid
"""

octree_manager_type: Type[T] = OctreeManager
octree_type: Type[T] = Octree
octree_manager_type: Type[T] = field(default_factory=lambda: OctreeManager)
octree_type: Type[T] = field(default_factory=lambda: Octree)
octree_config: OctreeConfigBase = OctreeConfigBase()
debug: bool = False
grid_voxel_edge_length: int = 1
Expand Down

0 comments on commit a8016f9

Please sign in to comment.