Skip to content

Commit 53541c6

Browse files
fix: correcting previous fix about type hinting, this time compatible with py 3.9
1 parent 9f32cb6 commit 53541c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/gh/diffCheck/diffCheck/df_error_estimation.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ class DFPoseResults():
276276
def __init__(self, assembly: DFAssembly):
277277
self.assembly = assembly
278278
self.pose_history : dict[str, DFPosesBeam] = dict()
279-
self.last_poses : dict[str, DFPose] = dict()
279+
self.last_poses : dict[str, typing.Optional[DFPose]] = dict()
280280

281281
def add_history(self, pose_history : dict[str, DFPosesBeam]):
282282
"""
@@ -288,7 +288,7 @@ def add_history(self, pose_history : dict[str, DFPosesBeam]):
288288
poses_dict = pose_history[element].poses_dictionary
289289
self.last_poses[element] = poses_dict[next(reversed(poses_dict))] if poses_dict else None
290290

291-
def add_last_poses(self, last_poses : dict[str, DFPose]):
291+
def add_last_poses(self, last_poses : dict[str, typing.Optional[DFPose]]):
292292
"""
293293
Adds a dictionnary of the last poses for each element. The keys are the element names_0", "element_1", etc),
294294
"""

0 commit comments

Comments
 (0)