              Whether to load the jpg thumbnail into the detected face object, if provided.
              Default: ``False``
          """
  
          logger.trace("Creating from alignment: (alignment: %s, has_image: %s)",
                       alignment, bool(image is not None))
          self.x = alignment["x"]
          self.w = alignment["w"]
          self.y = alignment["y"]
          self.h = alignment["h"]
 
</s> remove         self.x = alignment["x"]
        self.w = alignment["w"]
        self.y = alignment["y"]
        self.h = alignment["h"]
 </s> add         self.left = alignment["x"]
        self.width = alignment["w"]
        self.top = alignment["y"]
        self.height = alignment["h"] </s> remove         self.x = alignment["x"]
        self.w = alignment["w"]
        self.y = alignment["y"]
        self.h = alignment["h"]
        self.landmarks_xy = np.array(alignment["landmarks_xy"], dtype="float32")
        self.mask = dict()
 </s> add         self.left = alignment["x"]
        self.width = alignment["w"]
        self.top = alignment["y"]
        self.height = alignment["h"]
        self._landmarks_xy = np.array(alignment["landmarks_xy"], dtype="float32")
        self.mask = {} </s> remove     def from_alignment(self, alignment, image=None, with_thumb=False):
 </s> add     def from_alignment(self, alignment: AlignmentFileDict,
                       image: Optional[np.ndarray] = None, with_thumb: bool = False) -> None: </s> remove         logger.trace("Created from alignment: (x: %s, w: %s, y: %s. h: %s, "
                     "landmarks: %s, mask: %s)",
                     self.x, self.w, self.y, self.h, self.landmarks_xy, self.mask)
 </s> add         logger.trace("Created from alignment: (left: %s, width: %s, top: %s, "  # type: ignore
                     "height: %s, landmarks: %s, mask: %s)", self.left, self.width, self.top,
                     self.height, self.landmarks_xy, self.mask) </s> remove                      image.shape if image is not None and image.any() else image,
                     x, w, y, h, landmarks_xy,
                     {k: v.shape for k, v in mask} if mask is not None else mask,
                     filename)
 </s> add                      image.shape if image is not None and image.any() else image, left, width, top,
                     height, landmarks_xy, mask, filename)
        logger.trace("Creating from alignment: (alignment: %s, has_image: %s)",  # type: ignore
              Whether to load the jpg thumbnail into the detected face object, if provided.
              Default: ``False``
          """
  
        logger.trace("Creating from alignment: (alignment: %s, has_image: %s)",  # type: ignore
                       alignment, bool(image is not None))
          self.x = alignment["x"]
          self.w = alignment["w"]
          self.y = alignment["y"]
          self.h = alignment["h"]
keep keep keep keep 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 
lib/align/detected_face.py