From fe44654c73d28b092742f6cd87814ae8ab8e098d Mon Sep 17 00:00:00 2001 From: Matt Richards Date: Mon, 15 Feb 2021 21:10:52 +1000 Subject: [PATCH] type annotation --- dotbot/plugins/link.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dotbot/plugins/link.py b/dotbot/plugins/link.py index 1e1e3c6..ade54ad 100644 --- a/dotbot/plugins/link.py +++ b/dotbot/plugins/link.py @@ -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' %