Skip to content

Commit

Permalink
Update member.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccomb committed Nov 26, 2023
1 parent 1f783bc commit b33d02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trussme/member.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(self, joint_a: int, joint_b: int):
self.set_material("A36", update_props=False)
self.set_parameters(t=0.002, r=0.02, update_props=True)

def set_shape(self, new_shape: Literal["pipe", "bar", "square", "box"], update_props: bool = True):
def set_shape(self, new_shape: typing.Literal["pipe", "bar", "square", "box"], update_props: bool = True):
# Read and save hte shape name
if self.shape_name_is_ok(new_shape):
self.shape = new_shape
Expand Down

0 comments on commit b33d02a

Please sign in to comment.