1
0
Fork 0
mirror of synced 2024-06-26 02:41:10 -04:00

type annotation

This commit is contained in:
Matt Richards 2021-02-15 21:10:52 +10:00
parent da0d498d22
commit fe44654c73

View file

@ -228,9 +228,8 @@ class Link(dotbot.Plugin):
dotfile_source = absolute_source
target_path_exists: bool = self._exists(target_path_to_link_at)
target_file_is_link: bool = self._is_link(target_path_to_link_at)
symlink_dest_at_target_path = self._link_destination(target_path_to_link_at)
symlink_dest_at_target_path: str = self._link_destination(target_path_to_link_at)
if (not target_path_exists and target_file_is_link and
symlink_dest_at_target_path != dotfile_source):
self._log.warning('Invalid link %s -> %s' %