Skip to content

Commit

Permalink
Merge pull request #409 from tomprimozic/patch-1
Browse files Browse the repository at this point in the history
Fix "mutable default is not allowed"
  • Loading branch information
balakumar-s authored Nov 17, 2024
2 parents 493d079 + 594a8d6 commit 56fabe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/curobo/rollout/rollout_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# Standard Library
from abc import abstractmethod, abstractproperty
from dataclasses import dataclass
from dataclasses import dataclass, field
from typing import Dict, List, Optional, Sequence

# Third Party
Expand Down Expand Up @@ -91,7 +91,7 @@ class Goal(Sequence):

name: str = "goal"
goal_state: Optional[State] = None
goal_pose: Pose = Pose()
goal_pose: Pose = field(default_factory=Pose)
links_goal_pose: Optional[Dict[str, Pose]] = None
current_state: Optional[State] = None
retract_state: Optional[T_DOF] = None
Expand Down

0 comments on commit 56fabe5

Please sign in to comment.