                                         image=image,
                                         centering="legacy",
                                         is_aligned=True)
              roi = aligned_face.original_roi
              size = ((roi[1][0] - roi[0][0]) ** 2 +  # pylint:disable=unsubscriptable-object
                      (roi[1][1] - roi[0][1]) ** 2) ** 0.5  # pylint:disable=unsubscriptable-object
              img_list.append((filename, size))
  
          logger.info("Sorting...")
          return sorted(img_list, key=lambda x: x[1], reverse=True)
  
 
</s> remove                 face_size = (face.w ** 2 + face.h ** 2) ** 0.5
 </s> add                 face_size = (face.width ** 2 + face.height ** 2) ** 0.5 </s> remove                 # pylint:disable=unsubscriptable-object
 </s> add  </s> remove             top_left = face.aligned.original_roi[0]  # pylint:disable=unsubscriptable-object
 </s> add             top_left = face.aligned.original_roi[0] </s> remove         logger.trace("Returning: %s", roi)
 </s> add         logger.trace("Returning: %s", roi)  # type: ignore </s> remove             diff_height_width = det_face.h - det_face.w
 </s> add             diff_height_width = det_face.height - det_face.width
            size = ((roi[1][0] - roi[0][0]) ** 2 + (roi[1][1] - roi[0][1]) ** 2) ** 0.5
                                         image=image,
                                         centering="legacy",
                                         is_aligned=True)
              roi = aligned_face.original_roi
            size = ((roi[1][0] - roi[0][0]) ** 2 + (roi[1][1] - roi[0][1]) ** 2) ** 0.5
            size = ((roi[1][0] - roi[0][0]) ** 2 + (roi[1][1] - roi[0][1]) ** 2) ** 0.5
              img_list.append((filename, size))
  
          logger.info("Sorting...")
          return sorted(img_list, key=lambda x: x[1], reverse=True)
  
keep keep keep keep replace replace keep keep keep keep keep
 lib.align updates:
  - alignments.py
    - Add typed dicts for imported alignments
    - Explicitly check for presence of thumb value in alignments dict
    - linting
  - detected_face.py
    - Typing
    - Linting
    - Legacy support for pre-aligned face
    - Update dependencies to new property names 
tools/sort/sort.py