Variable in the inner scope of the backup function was also called backup and did redefine the name within the scope.
I changed the variable name to backup_path as it is the result of parent / file_name.
This change is proposed to omit the linter error:
Redefining name 'backup' from outer scope (line 48)Pylint[W0621:redefined-outer-name](https://pylint.readthedocs.io/en/latest/user_guide/messages/warning/redefined-outer-name.html)
Variable in the inner scope of the
backup
function was also calledbackup
and did redefine the name within the scope.I changed the variable name to
backup_path
as it is the result ofparent / file_name
.This change is proposed to omit the linter error:
Redefining name 'backup' from outer scope (line 48)Pylint[W0621:redefined-outer-name](https://pylint.readthedocs.io/en/latest/user_guide/messages/warning/redefined-outer-name.html)