type annotation
This commit is contained in:
parent
da0d498d22
commit
fe44654c73
1 changed files with 1 additions and 2 deletions
|
@ -228,9 +228,8 @@ class Link(dotbot.Plugin):
|
||||||
dotfile_source = absolute_source
|
dotfile_source = absolute_source
|
||||||
|
|
||||||
target_path_exists: bool = self._exists(target_path_to_link_at)
|
target_path_exists: bool = self._exists(target_path_to_link_at)
|
||||||
|
|
||||||
target_file_is_link: bool = self._is_link(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
|
if (not target_path_exists and target_file_is_link and
|
||||||
symlink_dest_at_target_path != dotfile_source):
|
symlink_dest_at_target_path != dotfile_source):
|
||||||
self._log.warning('Invalid link %s -> %s' %
|
self._log.warning('Invalid link %s -> %s' %
|
||||||
|
|
Loading…
Reference in a new issue