          else:
              filename = "alignments.fsa"
              if self._globals.is_video:
                  folder, vid = os.path.split(os.path.splitext(input_location)[0])
                  filename = "{}_{}".format(vid, filename)
              else:
                  folder = input_location
          retval = Alignments(folder, filename)
          if retval.version == 1.0:
              logger.error("The Manual Tool is not compatible with legacy Alignments files.")
 
</s> remove             filename = "{}.{}".format(noext_name, self._serializer.file_extension)
 </s> add             filename = f"{noext_name}.{self._serializer.file_extension}" </s> remove             retval = bool(len(self._data.get(frame_name, dict()).get("faces", [])) > 1)
 </s> add             retval = bool(len(self._data.get(frame_name, {}).get("faces", [])) > 1) </s> remove             key = "{}_{:06d}.png".format(basename, idx + 1)
 </s> add             key = f"{basename}_{idx + 1:06d}.png" </s> remove             legacy_filename = "{}{}".format(filename, ext)
 </s> add             legacy_filename = f"{filename}{ext}" </s> remove             filename = "{}_{:06d}.png".format(vidname, frame_idx + 1)
 </s> add             filename = f"{vidname}_{frame_idx + 1:06d}.png"
                filename = f"{vid}_{filename}"
          else:
              filename = "alignments.fsa"
              if self._globals.is_video:
                  folder, vid = os.path.split(os.path.splitext(input_location)[0])
                filename = f"{vid}_{filename}"
              else:
                  folder = input_location
          retval = Alignments(folder, filename)
          if retval.version == 1.0:
              logger.error("The Manual Tool is not compatible with legacy Alignments files.")
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 
tools/manual/detected_faces.py