      def matrix(self):
          """ :class:`numpy.ndarray`: The 3x2 transformation matrix for extracting and aligning the
          core face area out of the original frame, with no padding or sizing applied. The returned
          matrix is offset for the given :attr:`centering`. """
          if self._matrices[self._centering] is None:
              matrix = self._matrices["legacy"].copy()
              matrix[:, 2] -= self.pose.offset[self._centering]
              self._matrices[self._centering] = matrix
              logger.trace("original matrix: %s, new matrix: %s", self._matrices["legacy"], matrix)
          return self._matrices[self._centering]
 
</s> remove     def matrix(self):
 </s> add     def matrix(self) -> np.ndarray: </s> remove             logger.trace("original matrix: %s, new matrix: %s", self._matrices["legacy"], matrix)
 </s> add             logger.trace("original matrix: %s, new matrix: %s",  # type: ignore
                         self._matrices["legacy"], matrix) </s> remove     def adjusted_matrix(self):
 </s> add     def adjusted_matrix(self) -> np.ndarray: </s> remove         with self._cache["adjusted_matrix"][1]:
            if self._cache["adjusted_matrix"][0] is None:
 </s> add         with self._cache.lock("adjusted_matrix"):
            if self._cache.adjusted_matrix is None: </s> remove                 self._cache["pose"][0] = PoseEstimate(lms)
        return self._cache["pose"][0]
 </s> add                 self._cache.pose = PoseEstimate(lms)
        return self._cache.pose
        if not np.any(self._matrices[self._centering]):
      def matrix(self):
          """ :class:`numpy.ndarray`: The 3x2 transformation matrix for extracting and aligning the
          core face area out of the original frame, with no padding or sizing applied. The returned
          matrix is offset for the given :attr:`centering`. """
        if not np.any(self._matrices[self._centering]):
              matrix = self._matrices["legacy"].copy()
              matrix[:, 2] -= self.pose.offset[self._centering]
              self._matrices[self._centering] = matrix
              logger.trace("original matrix: %s, new matrix: %s", self._matrices["legacy"], matrix)
          return self._matrices[self._centering]
keep keep keep keep replace keep keep keep keep keep
 lib.align.aligned_face updates
  - Typing
  - Legacy support for pre-aligned faces
  - Coverage support for pre-aligned faces
  - Standardized retrieval of sub-crops 
lib/align/aligned_face.py