Avoid reassigning a parameter value to fix Pyright warnings (#3106)

This commit is contained in:
correctmost 2025-01-12 00:45:41 +00:00 committed by GitHub
parent df2791295d
commit 47736c4060
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -126,11 +126,11 @@ class ConfigurationOutput:
target.chmod(stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP)
def save(self, dest_path: Path | None = None) -> None:
dest_path = dest_path or self._default_save_path
save_path = dest_path or self._default_save_path
if self._is_valid_path(dest_path):
self.save_user_config(dest_path)
self.save_user_creds(dest_path)
if self._is_valid_path(save_path):
self.save_user_config(save_path)
self.save_user_creds(save_path)
def save_config(config: dict[str, Any]) -> None: